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]
/
includes
/
db
/
crm_contacts_db.inc
diff --git
a/includes/db/crm_contacts_db.inc
b/includes/db/crm_contacts_db.inc
index e5a91fb1be4561bbca0c811b37074ab15ef63402..98862b73ae3c25d2a6ad338a34eef770e38850cb 100644
(file)
--- a/
includes/db/crm_contacts_db.inc
+++ b/
includes/db/crm_contacts_db.inc
@@
-242,7
+242,7
@@
function get_crm_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
;
}
//----------------------------------------------------------------------------------------