From 833a7cedd0538db25617dced017cbc2738aeb54f Mon Sep 17 00:00:00 2001 From: e107steved Date: Fri, 30 Nov 2007 22:23:10 +0000 Subject: [PATCH] notice removal --- e107_handlers/shortcode_handler.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/e107_handlers/shortcode_handler.php b/e107_handlers/shortcode_handler.php index 01958c289..eb161e3d0 100644 --- a/e107_handlers/shortcode_handler.php +++ b/e107_handlers/shortcode_handler.php @@ -12,8 +12,8 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_handlers/shortcode_handler.php,v $ -| $Revision: 1.8 $ -| $Date: 2007-07-18 20:46:32 $ +| $Revision: 1.9 $ +| $Date: 2007-11-30 22:23:10 $ | $Author: e107steved $ +----------------------------------------------------------------------------+ */ @@ -129,7 +129,7 @@ class e_shortcode { } /* Check for shortcode registered with $e_shortcodes */ - if(array_key_exists($code, $e_shortcodes)) + if (is_array($e_shortcodes) && (array_key_exists($code, $e_shortcodes))) { include_once($e_shortcodes[$code]['file']); if(function_exists($e_shortcodes[$code]['function']))