From 4a3043e11337d588fb9debfefa696d3bef4af4d9 Mon Sep 17 00:00:00 2001 From: "Florian Aders (EleRas)" Date: Fri, 2 May 2014 08:10:53 +0200 Subject: [PATCH] Ignore an empty adminid (should fix user-errorreport) --- lib/classes/integrity/class.IntegrityCheck.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/classes/integrity/class.IntegrityCheck.php b/lib/classes/integrity/class.IntegrityCheck.php index 6ea37d96..456a4647 100644 --- a/lib/classes/integrity/class.IntegrityCheck.php +++ b/lib/classes/integrity/class.IntegrityCheck.php @@ -83,7 +83,7 @@ class IntegrityCheck { $adm_stmt = Database::prepare("SELECT `adminid`, `ip` FROM `" . TABLE_PANEL_ADMINS . "` ORDER BY `adminid` ASC"); Database::pexecute($adm_stmt); while ($row = $adm_stmt->fetch(PDO::FETCH_ASSOC)) { - if ($row['ip'] == -1) { + if ($row['ip'] < 0 || is_null($row['ip']) || empty($row['ip'])) { // Admin uses default-IP $admips[$row['adminid']] = Settings::Get('system.defaultip'); } else {