1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 11:05:55 +00:00

apparently it's a bad idea to do is_resource() on a mysqli result

This commit is contained in:
Andrew Dolgov
2015-07-12 14:23:32 +03:00
parent 83ce77a2e8
commit ec57104d6e
2 changed files with 3 additions and 3 deletions

View File

@@ -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) {