Fixed some deprecations (#777)

This commit is contained in:
Roman Kelesidis 2023-06-05 20:09:54 +07:00 committed by GitHub
commit 9a5d9a71d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -276,7 +276,7 @@ function clean_filename($fname)
*/
function str_compact($str)
{
return preg_replace('#\s+#u', ' ', trim($str));
return preg_replace('#\s+#u', ' ', trim($str ?? ''));
}
/**

View file

@ -1012,7 +1012,7 @@ class SqlDb
$this->explain_hold .= '<tr>';
foreach (array_values($row) as $i => $val) {
$class = !($i % 2) ? 'row1' : 'row2';
$this->explain_hold .= '<td class="' . $class . ' gen">' . str_replace(["{$this->selected_db}.", ',', ';'], ['', ', ', ';<br />'], $val) . '</td>';
$this->explain_hold .= '<td class="' . $class . ' gen">' . str_replace(["{$this->selected_db}.", ',', ';'], ['', ', ', ';<br />'], $val ?? '') . '</td>';
}
$this->explain_hold .= '</tr>';