mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 21:57:51 +02:00
PHP 8.1: Fix some more null value issues
* `e_form::attributes()` * `e_parse::toImage()`
This commit is contained in:
@@ -4333,7 +4333,7 @@ class e_parse
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
$log = e107::getLog();
|
$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);
|
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)
|
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