d8c319ff by Kevin Burton

notifications update line 62 foreachloop bug

1 parent e42bce8c
......@@ -58,6 +58,7 @@ function print_user_notices($show_more = true) {
$content = $system['message'];
$id = $the_notice->ID;
if (isset($notices[$i]['args']) && count($notices[$i]['args']) > 0):
foreach($notices[$i]['args'] as $key => $val) {
if (filter_var($val, FILTER_VALIDATE_URL) !== false) {
$content = str_replace("{".$key."}","<a href='".$val."'>Click here</a>",$content);
......@@ -65,6 +66,7 @@ function print_user_notices($show_more = true) {
$content = str_replace("{".$key."}",$val,$content);
}
}
endif;
$rows .= '<tr>';
if ($notices[$i]['status']=="unread") {
......