Skip to content

Commit f13b2e6

Browse files
authored
Merge pull request #1526 from zatomant/patch-3
Update phpcompat.class.inc.php
2 parents d52f1d0 + 5daefd7 commit f13b2e6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

manager/includes/extenders/phpcompat.class.inc.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ public function htmlspecialchars($str = '', $flags = ENT_COMPAT, $encode = '')
1515
{
1616
$modx = evolutionCMS();
1717

18-
if ($str == '') {
19-
return '';
20-
}
18+
if (is_array($str) || $str == '') return '';
2119

2220
if ($encode == '') {
2321
$encode = $modx->config['modx_charset'];

0 commit comments

Comments
 (0)