mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
more isset() from stintel
git-svn-id: http://www.observium.org/svn/observer/trunk@2251 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
+1
-1
@@ -100,7 +100,7 @@ function device_by_id_cache($device_id)
|
||||
{
|
||||
global $device_cache;
|
||||
|
||||
if (is_array($device_cache[$device_id]))
|
||||
if (isset($device_cache[$device_id]) && is_array($device_cache[$device_id]))
|
||||
{
|
||||
$device = $device_cache[$device_id];
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user