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; + } } }