From 6216dc4d9554216c721a4b3512775d5b9bbdb9ad Mon Sep 17 00:00:00 2001 From: Cameron Date: Sat, 17 Sep 2016 11:17:04 -0700 Subject: [PATCH] PHP Notice Removal --- e107_plugins/linkwords/e_tohtml.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/e107_plugins/linkwords/e_tohtml.php b/e107_plugins/linkwords/e_tohtml.php index 278dda635..eec27a0b0 100755 --- a/e107_plugins/linkwords/e_tohtml.php +++ b/e107_plugins/linkwords/e_tohtml.php @@ -68,10 +68,11 @@ class e_tohtml_linkwords $this->lwAjaxEnabled = varset($pref['lw_ajax_enable'],0); // See whether they should be active on this page - if not, no point doing anything! - if ((strpos(e_SELF, ADMINDIR) !== FALSE) || (strpos(e_PAGE, "admin_") !== FALSE)) return; // No linkwords on admin directories + if(e_ADMIN_AREA === true) { return; } + // if ((strpos(e_SELF, ADMINDIR) !== FALSE) || (strpos(e_PAGE, "admin_") !== FALSE)) return; // No linkwords on admin directories // Now see if disabled on specific pages - $check_url = e_SELF.(e_QUERY ? "?".e_QUERY : ''); + $check_url = e_SELF.(defined('e_QUERY') ? "?".e_QUERY : ''); $this->block_list = explode("|",substr(varset($pref['lw_page_visibility'],''),2)); // Knock off the 'show/hide' flag foreach($this->block_list as $p)