]> git.wh0rd.org - tt-rss.git/commitdiff
fix crash in filter preferences
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 10 Jul 2013 16:39:57 +0000 (20:39 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 10 Jul 2013 16:39:57 +0000 (20:39 +0400)
classes/pref/filters.php

index 5d19a5556572bc05cf13c7cf02dce0c43c39c168..c4d6fea1d46654dfd2d09c19acc0f2868ebbe64e 100644 (file)
@@ -95,7 +95,9 @@ class Pref_Filters extends Handler_Protected {
 
                print "<div class=\"filterTestHolder\">";
                print "<table width=\"100%\" cellspacing=\"0\" id=\"prefErrorFeedList\">";
-               $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);