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]
/
gl
/
includes
/
db
/
gl_db_account_types.inc
diff --git
a/gl/includes/db/gl_db_account_types.inc
b/gl/includes/db/gl_db_account_types.inc
index 4d6d58e876039aa5a7d29ee5fd82280f4323731f..04fd9e9980288f96fdf83a062424f5fb1686b6b7 100644
(file)
--- a/
gl/includes/db/gl_db_account_types.inc
+++ b/
gl/includes/db/gl_db_account_types.inc
@@
-98,7
+98,7
@@
function get_account_type_name($id)
$result = db_query($sql, "could not get account type");
$row = db_fetch_row($result);
- return
$row[0]
;
+ return
is_array($row) ? $row[0] : false
;
}
function delete_account_type($id)