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]
/
taxes
/
db
/
tax_types_db.inc
diff --git
a/taxes/db/tax_types_db.inc
b/taxes/db/tax_types_db.inc
index ce73935f61b95c17756865ac824b3ebf605b211c..b927bb05ce0a6a5ebc21b5a20bb55c4faea1ef2f 100644
(file)
--- a/
taxes/db/tax_types_db.inc
+++ b/
taxes/db/tax_types_db.inc
@@
-73,7
+73,7
@@
function get_tax_type_rate($type_id)
$result = db_query($sql, "could not get tax type rate");
$row = db_fetch_row($result);
$result = db_query($sql, "could not get tax type rate");
$row = db_fetch_row($result);
- return
$row[0]
;
+ return
is_array($row) ? $row[0] : false
;
}
function delete_tax_type($type_id)
}
function delete_tax_type($type_id)