diff options
Diffstat (limited to 'include/db.php')
-rw-r--r-- | include/db.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/db.php b/include/db.php index 91e5015..493b93d 100644 --- a/include/db.php +++ b/include/db.php @@ -114,7 +114,10 @@ function DB_query($query) function DB_fetch_array($result) { - return $result->fetch_array(MYSQLI_NUM); + if($result) + return $result->fetch_array(MYSQLI_NUM); + else + return NULL; } function DB_insert_id() |