From 0ca48f2f8ac4c7b70ad6af2acba36d18ee75c575 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Fri, 22 May 2015 03:08:02 +0000 Subject: [PATCH] Changes result array to devices. --- app/devices/devices.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/devices/devices.php b/app/devices/devices.php index 1125670b0c..64c90fbab0 100644 --- a/app/devices/devices.php +++ b/app/devices/devices.php @@ -201,7 +201,7 @@ else { echo "\n"; if (count($devices) > 0) { - foreach($result as $row) { + foreach($devices as $row) { $tr_link = (permission_exists('device_edit')) ? "href='device_edit.php?id=".$row['device_uuid']."'" : null; echo "\n"; if ($_GET['showall'] && permission_exists('device_all')) { @@ -226,7 +226,7 @@ else { echo "\n"; if ($c==0) { $c=1; } else { $c=0; } } //end foreach - unset($sql, $result, $row_count); + unset($sql, $devices, $row_count); } //end if results echo "\n";