1
0
mirror of https://github.com/e107inc/e107.git synced 2025-03-14 01:19:44 +01: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
No known key found for this signature in database
GPG Key ID: 1167C5F9C9897637
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

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) . "'";
}
}