diff options
Diffstat (limited to 'admin/survey/classes/class.GlobalMisc.php')
-rw-r--r-- | admin/survey/classes/class.GlobalMisc.php | 8 |
1 files changed, 6 insertions, 2 deletions
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) {
|