notifications update line 62 foreachloop bug
Showing
1 changed file
with
2 additions
and
0 deletions
| ... | @@ -58,6 +58,7 @@ function print_user_notices($show_more = true) { | ... | @@ -58,6 +58,7 @@ function print_user_notices($show_more = true) { |
| 58 | $content = $system['message']; | 58 | $content = $system['message']; |
| 59 | $id = $the_notice->ID; | 59 | $id = $the_notice->ID; |
| 60 | 60 | ||
| 61 | if (isset($notices[$i]['args']) && count($notices[$i]['args']) > 0): | ||
| 61 | foreach($notices[$i]['args'] as $key => $val) { | 62 | foreach($notices[$i]['args'] as $key => $val) { |
| 62 | if (filter_var($val, FILTER_VALIDATE_URL) !== false) { | 63 | if (filter_var($val, FILTER_VALIDATE_URL) !== false) { |
| 63 | $content = str_replace("{".$key."}","<a href='".$val."'>Click here</a>",$content); | 64 | $content = str_replace("{".$key."}","<a href='".$val."'>Click here</a>",$content); |
| ... | @@ -65,6 +66,7 @@ function print_user_notices($show_more = true) { | ... | @@ -65,6 +66,7 @@ function print_user_notices($show_more = true) { |
| 65 | $content = str_replace("{".$key."}",$val,$content); | 66 | $content = str_replace("{".$key."}",$val,$content); |
| 66 | } | 67 | } |
| 67 | } | 68 | } |
| 69 | endif; | ||
| 68 | 70 | ||
| 69 | $rows .= '<tr>'; | 71 | $rows .= '<tr>'; |
| 70 | if ($notices[$i]['status']=="unread") { | 72 | if ($notices[$i]['status']=="unread") { | ... | ... |
-
Please register or sign in to post a comment