From 493c4bd33ea2c7844dae47edafbcc068f82b59b7 Mon Sep 17 00:00:00 2001 From: chansizzle <14916599+chansizzle@users.noreply.github.com> Date: Tue, 21 Jan 2020 14:21:34 -0700 Subject: [PATCH] Update devices.php --- app/devices/devices.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/app/devices/devices.php b/app/devices/devices.php index adc48b40d2..7f46ca1d72 100644 --- a/app/devices/devices.php +++ b/app/devices/devices.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2008 - 2019 + Portions created by the Initial Developer are Copyright (C) 2008 - 2020 the Initial Developer. All Rights Reserved. Contributor(s): @@ -196,10 +196,12 @@ //alternate_found $device_alternate = false; - foreach($devices as $row) { - if (is_uuid($row['device_uuid_alternate'])) { - $device_alternate = true; - break; + if (is_array($devices)) { + foreach($devices as $row) { + if (is_uuid($row['device_uuid_alternate'])) { + $device_alternate = true; + break; + } } }