Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Tenzing
/
Tz Tools
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
d8c319ff
authored
2010-11-19 16:41:03 +0000
by
Kevin Burton
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
notifications update line 62 foreachloop bug
1 parent
e42bce8c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
com/Notifications/Notifications.php
com/Notifications/Notifications.php
View file @
d8c319f
...
...
@@ -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"
)
{
...
...
Please
register
or
sign in
to post a comment