From 75160b12821f7f4299cce7f0b69c83c1502ae071 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Mon, 27 May 2024 13:08:29 +0200 Subject: 2024-02-19 upstream --- admin/survey/classes/class.GlobalMisc.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'admin/survey/classes/class.GlobalMisc.php') diff --git a/admin/survey/classes/class.GlobalMisc.php b/admin/survey/classes/class.GlobalMisc.php index 8075284..446bf60 100644 --- a/admin/survey/classes/class.GlobalMisc.php +++ b/admin/survey/classes/class.GlobalMisc.php @@ -14,9 +14,13 @@ class GlobalMisc { return self::$getMisc[$what]; $sql = sisplet_query("SELECT * FROM srv_misc WHERE what = '$what'"); - $row = mysqli_fetch_array($sql); - return self::$getMisc[$what] = $row['value']; + if(mysqli_num_rows($sql) > 0){ + $row = mysqli_fetch_array($sql); + return self::$getMisc[$what] = $row['value']; + } + + return false; } static function setMisc($what, $value) { -- cgit v1.2.3