diff options
author | Andrew Dolgov <[email protected]> | 2013-07-10 20:39:57 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-07-10 20:39:57 +0400 |
commit | a290e9ea2ec80f033abb6eae38d4a9cb80a6b9b2 (patch) | |
tree | 1579b987d9fe40c566112125b8ec0e4c78ccd686 /classes | |
parent | 32732aba260c703eaf1f75a274bd54ac504512cd (diff) |
fix crash in filter preferences
Diffstat (limited to 'classes')
-rw-r--r-- | classes/pref/filters.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/classes/pref/filters.php b/classes/pref/filters.php index 5d19a5556..c4d6fea1d 100644 --- a/classes/pref/filters.php +++ b/classes/pref/filters.php @@ -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); |