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]
/
admin
/
db
/
tags_db.inc
diff --git
a/admin/db/tags_db.inc
b/admin/db/tags_db.inc
index b33de8258fff244abfb98a8c478d4b4ebebbee29..40602a942b0c11183582bad6a006eb9a85868f64 100644
(file)
--- a/
admin/db/tags_db.inc
+++ b/
admin/db/tags_db.inc
@@
-65,7
+65,7
@@
function get_tag_type($id)
$result = db_query($sql, "could not get tag type");
$row = db_fetch_row($result);
$result = db_query($sql, "could not get tag type");
$row = db_fetch_row($result);
- return
$row[0]
;
+ return
is_array($row) ? $row[0] : false
;
}
//--------------------------------------------------------------------------------------
}
//--------------------------------------------------------------------------------------
@@
-105,7
+105,7
@@
function get_tag_description($id)
$result = db_query($sql, "could not get tag description");
$row = db_fetch_row($result);
$result = db_query($sql, "could not get tag description");
$row = db_fetch_row($result);
- return
$row[0]
;
+ return
is_array($row) ? $row[0] : false
;
}
//--------------------------------------------------------------------------------------
}
//--------------------------------------------------------------------------------------