Remove the ampersand from &$row

This broke the conference center list on PHP 7.4
This commit is contained in:
FusionPBX
2024-08-22 10:23:44 -06:00
committed by GitHub
parent b0aab10872
commit 7cd482889a
@@ -125,7 +125,13 @@
$offset = $rows_per_page * $page;
//get the list
$sql = str_replace('count(*)', '*', $sql);
$sql = "select * from v_conference_centers ";
$sql .= "where true ";
if ($show != "all" || !permission_exists('conference_center_all')) {
$sql .= "and (domain_uuid = :domain_uuid or domain_uuid is null) ";
$parameters['domain_uuid'] = $_SESSION['domain_uuid'];
}
$sql .= $sql_search ?? '';
$sql .= order_by($order_by, $order, null, null, $sort);
$sql .= limit_offset($rows_per_page, $offset);
$database = new database;
@@ -138,7 +144,7 @@
//update the array to show only the greeting file name
$x = 0;
foreach ($conference_centers as &$row) {
foreach ($conference_centers as $row) {
$row['conference_center_greeting'] = basename($row['conference_center_greeting'] ?? '');
}
@@ -262,7 +268,6 @@
echo "</tr>\n";
$x++;
}
unset($conference_centers);
}
echo "</table>\n";