mirror of
https://github.com/e107inc/e107.git
synced 2025-03-14 17:39:46 +01:00
PHP 8.1: Fix some more null value issues
* `e_form::attributes()` * `e_parse::toImage()`
This commit is contained in:
parent
fea46ed7ee
commit
fb420ccfb1
@ -4333,7 +4333,7 @@ class e_parse
|
||||
else
|
||||
{
|
||||
$log = e107::getLog();
|
||||
$log->addDebug('Broken Image Path: ' . $legacyPath . "\n" . print_r(debug_backtrace(null, 2), true), false)->save('IMALAN_00');
|
||||
$log->addDebug('Broken Image Path: ' . $legacyPath . "\n" . print_r(debug_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT, 2), true), false)->save('IMALAN_00');
|
||||
e107::getDebug()->log('Broken Image Path: ' . $legacyPath);
|
||||
}
|
||||
|
||||
|
@ -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) . "'";
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user