Any help much appreciated...
I keep getting this intermitment error:
[Notice: Undefined offset: 1 in industry_process_page() (line 47 of /home/muniport/public_html/sites/all/themes/industry/template.php).]
... based on the following:
/*
* Process page
* pre-process hook_preprocess_page
*/
function industry_process_page(&$variables){
global $base_url;
/*********front page different color title**********/
$variable=$variables['title'];
$text=(explode(" ", $variable));
$count = count($text);
if($count < 3) {
$variables['title'] = '<span><span class="title_default">'.$text[0].'</span> '.$text[1].'</span>';
}
else {
$output = '<span>';
foreach ($text as $k => $v) {
if($k < 2) {
$output .= '<span class="title_default">'.$v.'</span> ';
}
else {
$output .= ' '.$v.' ';
}
}
$output .= '</span>';
$variables['title'] = $output;
}
This is part of a drupal template that is supposedly free and I just want to get rid of the error message. I have tried increasing the number of $count and $k to no avail.
Any suggestions?
Thanx, Brad