mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-20 21:33:54 -07:00
Fixed some deprecations (#777)
This commit is contained in:
parent
dadd5dbcdc
commit
9a5d9a71d2
2 changed files with 2 additions and 2 deletions
|
@ -276,7 +276,7 @@ function clean_filename($fname)
|
||||||
*/
|
*/
|
||||||
function str_compact($str)
|
function str_compact($str)
|
||||||
{
|
{
|
||||||
return preg_replace('#\s+#u', ' ', trim($str));
|
return preg_replace('#\s+#u', ' ', trim($str ?? ''));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1012,7 +1012,7 @@ class SqlDb
|
||||||
$this->explain_hold .= '<tr>';
|
$this->explain_hold .= '<tr>';
|
||||||
foreach (array_values($row) as $i => $val) {
|
foreach (array_values($row) as $i => $val) {
|
||||||
$class = !($i % 2) ? 'row1' : 'row2';
|
$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>';
|
$this->explain_hold .= '</tr>';
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue