summaryrefslogtreecommitdiff
path: root/classes/api.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2015-07-12 14:23:32 +0300
committerAndrew Dolgov <[email protected]>2015-07-12 14:23:32 +0300
commitec57104d6e221a2a44752d6f68615055eefea1db (patch)
tree6c6a4b68a5112edb82cf08c7397c15b9edbccbca /classes/api.php
parent83ce77a2e8fbffc4c179f190dbc5d97f459a01f7 (diff)
apparently it's a bad idea to do is_resource() on a mysqli result
Diffstat (limited to 'classes/api.php')
-rw-r--r--classes/api.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/api.php b/classes/api.php
index 2691625c7..648d6ca6e 100644
--- a/classes/api.php
+++ b/classes/api.php
@@ -700,7 +700,7 @@ class API extends Handler {
'id' => $feed_id,
'is_cat' => $is_cat);
- if (is_resource($result)) {
+ if (!is_numeric($result)) {
while ($line = db_fetch_assoc($result)) {
$line["content_preview"] = truncate_string(strip_tags($line["content"]), $excerpt_length);
foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_QUERY_HEADLINES) as $p) {