From c93c1a68291d1d710fb973d2c1fb7e2168875432 Mon Sep 17 00:00:00 2001 From: CaMer0n Date: Thu, 26 Apr 2012 02:42:41 +0000 Subject: [PATCH] Temporary Fix for PHP Warning in linkwords. --- e107_plugins/linkwords/e_tohtml.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/e107_plugins/linkwords/e_tohtml.php b/e107_plugins/linkwords/e_tohtml.php index 252e54559..eaa9a11eb 100755 --- a/e107_plugins/linkwords/e_tohtml.php +++ b/e107_plugins/linkwords/e_tohtml.php @@ -30,7 +30,7 @@ if (!defined('e107_INIT')) { exit; } // if (!plugInstalled('linkwords')) exit; // This will completely break a site during upgrades. -define('LW_CACHE_ENABLE', TRUE); +define('LW_CACHE_ENABLE', FALSE); class e_tohtml_linkwords @@ -144,7 +144,7 @@ class e_tohtml_linkwords function to_html($text,$area = 'olddefault') { - if (!$this->lw_enabled || !array_key_exists($area,$this->area_opts) || !$this->area_opts[$area]) return $text; // No linkwords in disabled areas + if (!$this->lw_enabled || !count($this->area_opts) || !array_key_exists($area,$this->area_opts) || !$this->area_opts[$area]) return $text; // No linkwords in disabled areas // Split up by HTML tags and process the odd bits here $ptext = ""; @@ -260,4 +260,7 @@ class e_tohtml_linkwords } } + + + ?> \ No newline at end of file