1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-16 19:44:09 +02:00

PHP 8.1: Fix some more null value issues

* `e_form::attributes()`
* `e_parse::toImage()`
This commit is contained in:
Nick Liu
2021-11-23 13:57:38 -06:00
parent fea46ed7ee
commit fb420ccfb1
2 changed files with 2 additions and 2 deletions

View File

@@ -4048,7 +4048,7 @@ var_dump($select_options);*/
}
if (!empty($value) || is_numeric($value) || $key === "value" || strpos($key,'data-') === 0)
{
$stringifiedAttributes[] = $key . "='" . htmlspecialchars($value, ENT_QUOTES) . "'";
$stringifiedAttributes[] = $key . "='" . htmlspecialchars((string) $value, ENT_QUOTES) . "'";
}
}