X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=inventory%2Fincludes%2Fdb%2Fitems_category_db.inc;h=2c79d1373f1b45499bf774c917544572c76340ca;hb=490690013b7bb161ee2295b89cb18e1a88cae2af;hp=8b6d872aefaec0eb1bd5a9d442ae5c6fcccf3d38;hpb=95ff74b5722826544743a01daf527aa3c9efe11a;p=fa-stable.git diff --git a/inventory/includes/db/items_category_db.inc b/inventory/includes/db/items_category_db.inc index 8b6d872a..2c79d137 100644 --- 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; }