Welcome to Geeklog, Anonymous Saturday, July 27 2024 @ 01:02 am EDT

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 79Smile $retval .= htmlspecialchars($value);

$retval .= '</td></tr>';
}
$retval .= '</table>';
return $retval;
}

Can anyone tell me what makes this warning Exclamation
 Quote

All times are EDT. The time is now 01:02 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