projects
/
e-DoKo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
14827e2
)
BUGFIX: mysql needs to return NULL when nothing was found
author
Arun Persaud
<arun@nubati.net>
Tue, 26 Feb 2013 05:29:12 +0000
(21:29 -0800)
committer
Arun Persaud
<arun@nubati.net>
Tue, 26 Feb 2013 05:30:54 +0000
(21:30 -0800)
include/db.php
patch
|
blob
|
history
diff --git
a/include/db.php
b/include/db.php
index 91e5015ff0e5fe7b1b272710cb07c3b289d2b55d..493b93dd08862953711b8a3b0cb7bf294e36a835 100644
(file)
--- 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()