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]
/
fixed_assets
/
includes
/
fa_classes_db.inc
diff --git
a/fixed_assets/includes/fa_classes_db.inc
b/fixed_assets/includes/fa_classes_db.inc
index 37fb5cebb082753cb18c81ada98940e8c03c71b4..8bbf8405870989a9548f893854fd8d1d1a41ab82 100644
(file)
--- a/
fixed_assets/includes/fa_classes_db.inc
+++ b/
fixed_assets/includes/fa_classes_db.inc
@@
-27,7
+27,7
@@
function get_fixed_asset_classname($class)
$row = db_fetch_row($result);
- return
$row[0]
;
+ return
is_array($row) ? $row[0] : false
;
}
function update_fixed_asset_class($fa_class_id, $parent_id, $description, $long_description, $depreciation_rate)