remove instances where a pointer is used in a foreach loop for value (#7108)
This commit is contained in:
@@ -70,7 +70,7 @@ if ($domains_processed == 1) {
|
||||
$sql .= "from v_phrase_details where phrase_detail_function = 'play-file' ";
|
||||
$result = $database->select($sql, null, 'all');
|
||||
if (is_array($result) && @sizeof($result) != 0) {
|
||||
foreach ($result as $index => &$row) {
|
||||
foreach ($result as $index => $row) {
|
||||
$phrase_detail_uuid = $row['phrase_detail_uuid'];
|
||||
$phrase_detail_data = $row['phrase_detail_data'];
|
||||
if (substr_count($phrase_detail_data, $setting->get('switch','recordings').'/'.$domain_name) > 0) {
|
||||
@@ -105,7 +105,7 @@ if ($domains_processed == 1) {
|
||||
$sql .= "and phrase_detail_data like 'lua(streamfile.lua %)' ";
|
||||
$result = $database->select($sql, null, 'all');
|
||||
if (is_array($result) && @sizeof($result) != 0) {
|
||||
foreach ($result as $index => &$row) {
|
||||
foreach ($result as $index => $row) {
|
||||
$phrase_detail_uuid = $row['phrase_detail_uuid'];
|
||||
$phrase_detail_data = $row['phrase_detail_data'];
|
||||
//update function and data to use standard method
|
||||
|
||||
Reference in New Issue
Block a user