From: Andrew Dolgov Date: Wed, 10 Jul 2013 16:39:57 +0000 (+0400) Subject: fix crash in filter preferences X-Git-Tag: 1.9~53 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=a290e9ea2ec80f033abb6eae38d4a9cb80a6b9b2;p=tt-rss.git fix crash in filter preferences --- diff --git a/classes/pref/filters.php b/classes/pref/filters.php index 5d19a555..c4d6fea1 100644 --- a/classes/pref/filters.php +++ b/classes/pref/filters.php @@ -95,7 +95,9 @@ class Pref_Filters extends Handler_Protected { print "
"; print ""; - $line["content_preview"] = strip_tags($line["content_preview"]), 100, '...'); + + $line["content_preview"] = truncate_string(strip_tags($line["content_preview"]), 100, '...'); + while ($line = $this->dbh->fetch_assoc($result)) { foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_QUERY_HEADLINES) as $p) { $line = $p->hook_query_headlines($line, 100);