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]
/
inventory
/
includes
/
db
/
items_category_db.inc
diff --git
a/inventory/includes/db/items_category_db.inc
b/inventory/includes/db/items_category_db.inc
index 8b6d872aefaec0eb1bd5a9d442ae5c6fcccf3d38..2c79d1373f1b45499bf774c917544572c76340ca 100644
(file)
--- a/
inventory/includes/db/items_category_db.inc
+++ b/
inventory/includes/db/items_category_db.inc
@@
-98,6
+98,6
@@
function get_category_name($id)
$result = db_query($sql, "could not get sales type");
$row = db_fetch_row($result);
- return
$row[0]
;
+ return
is_array($row) ? $row[0] : false
;
}