Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 02:11 am EST
Geeklog Forums
Toolbox Global Vars
Status: offline
Uffe
Forum User
Junior
Registered: 02/01/04
Posts: 30
I have installed Toolbox plugins...
When i look in Global Vars in my toolbox there is some Warning: htmlspecialchars() expects parameter 1 to be string, array given in /var/www/html/public_html/admin/toolbox/varinfo.php on line 79
This is my varinfo.php
function print_array($ara, $var) {
$retval = '<table border="1"><tr><th colspan="2" align="left">Array -- $' . $ara . '</th></tr>';
foreach ($var as $key => $value) {
$retval .= '<tr><td valign="top" width="100">' . htmlspecialchars($key) . '</td><td>';
(LINE 79 $retval .= htmlspecialchars($value);
$retval .= '</td></tr>';
}
$retval .= '</table>';
return $retval;
}
Can anyone tell me what makes this warning
When i look in Global Vars in my toolbox there is some Warning: htmlspecialchars() expects parameter 1 to be string, array given in /var/www/html/public_html/admin/toolbox/varinfo.php on line 79
This is my varinfo.php
function print_array($ara, $var) {
$retval = '<table border="1"><tr><th colspan="2" align="left">Array -- $' . $ara . '</th></tr>';
foreach ($var as $key => $value) {
$retval .= '<tr><td valign="top" width="100">' . htmlspecialchars($key) . '</td><td>';
(LINE 79 $retval .= htmlspecialchars($value);
$retval .= '</td></tr>';
}
$retval .= '</table>';
return $retval;
}
Can anyone tell me what makes this warning
16
11
Quote
All times are EST. The time is now 02:11 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content