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:
@@ -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) . "'";
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user