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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user