Good Day,

I am getting this warning. Is there anyway to fix it?
LINE 43

foreach($primary_links as $key => $value ) {
if (ereg('active', $key)) {
$primary_links[$key]['attributes']['class'] = "active";
}
}
?>

Thank you,

Mark

Comments

derjochenmeyer’s picture

strange .... try to relpace that code with this one ..

if (is_array($primary_links)) {
  foreach($primary_links as $key => $value ) {
    if (ereg('active', $key)) {
      $primary_links[$key]['attributes']['class'] = "active";
    }
  }
}
aauger@diocese-sacramento.org’s picture

Thank you, your suggestion worked great!