Skip to content

Commit

Permalink
is_string check instead of is_scalar.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gipetto committed Aug 15, 2011
1 parent 08d5400 commit 684455a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OpenVBX/libraries/Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ function write_view($region, $view, $data = NULL, $overwrite = FALSE)

function clean_output($data)
{
if (is_scalar($data)) {
if (is_string($data)) {
if (version_compare(phpversion(), '5.2.3', '<')) {
$data = htmlspecialchars($data);
}
Expand All @@ -396,7 +396,7 @@ function clean_output($data)
$item = self::clean_output($item);
}
}

return $data;
}

Expand Down

0 comments on commit 684455a

Please sign in to comment.