projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Mysqli errors: Trying to access array offset on value of type bool. Fixed. Please...
[fa-stable.git]
/
purchasing
/
includes
/
db
/
suppliers_db.inc
diff --git
a/purchasing/includes/db/suppliers_db.inc
b/purchasing/includes/db/suppliers_db.inc
index 602b86bf60049a52f50d3c385785510480909acb..dff68c123c302e1a7bdf6700b577dfd9425e7a5e 100644
(file)
--- a/
purchasing/includes/db/suppliers_db.inc
+++ b/
purchasing/includes/db/suppliers_db.inc
@@
-144,7
+144,7
@@
function get_supplier_name($supplier_id)
$row = db_fetch_row($result);
- return
$row[0]
;
+ return
is_array($row) ? $row[0] : false
;
}
function get_supplier_accounts($supplier_id)