1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-02 22:45:02 +03:00

fix#2 func_htmlspecialchars

This commit is contained in:
Sergey S Yaglov 2012-02-20 23:48:20 +03:00
parent ba806f3d13
commit 8ae33052fc

View file

@ -136,12 +136,11 @@ function func_generator($iLength=10) {
*/
function func_htmlspecialchars(&$data, $walkIndex = null)
{
if (!is_array($data))
{
if(is_string($data)){
$data = htmlspecialchars($data);
return;
}elseif(is_array($data)){
array_walk($data, __FUNCTION__);
}
array_walk($data, __FUNCTION__);
}
/**