1
0
mirror of https://github.com/e107inc/e107.git synced 2025-06-04 01:45:15 +02:00

Temporary Fix for PHP Warning in linkwords.

This commit is contained in:
CaMer0n 2012-04-26 02:42:41 +00:00
parent 286d8048a6
commit c93c1a6829

View File

@ -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
}
}
?>