fix crash in filter preferences
This commit is contained in:
parent
32732aba26
commit
a290e9ea2e
1 changed files with 3 additions and 1 deletions
|
@ -95,7 +95,9 @@ class Pref_Filters extends Handler_Protected {
|
||||||
|
|
||||||
print "<div class=\"filterTestHolder\">";
|
print "<div class=\"filterTestHolder\">";
|
||||||
print "<table width=\"100%\" cellspacing=\"0\" id=\"prefErrorFeedList\">";
|
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)) {
|
while ($line = $this->dbh->fetch_assoc($result)) {
|
||||||
foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_QUERY_HEADLINES) as $p) {
|
foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_QUERY_HEADLINES) as $p) {
|
||||||
$line = $p->hook_query_headlines($line, 100);
|
$line = $p->hook_query_headlines($line, 100);
|
||||||
|
|
Loading…
Reference in a new issue