diff --git a/e107_handlers/shortcode_handler.php b/e107_handlers/shortcode_handler.php
index f1f968f72..e3ee4c818 100644
--- a/e107_handlers/shortcode_handler.php
+++ b/e107_handlers/shortcode_handler.php
@@ -12,9 +12,9 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_handlers/shortcode_handler.php,v $
-| $Revision: 1.4 $
-| $Date: 2007-02-04 17:36:16 $
-| $Author: mcfly_e107 $
+| $Revision: 1.5 $
+| $Date: 2007-03-05 21:24:47 $
+| $Author: e107steved $
+----------------------------------------------------------------------------+
*/
@@ -133,15 +133,22 @@ class e_shortcode {
}
}
- if(E107_DBG_SC){
- echo " sc= ".str_replace(e_FILE."shortcode/","",$scFile)."
";
+ if (!isset($shortcode))
+ {
+ if(E107_DBG_BBSC) trigger_error("shortcode not found:{".$code."}", E_USER_ERROR);
+ return $matches[0];
+ }
+
+ if(E107_DBG_SC)
+ {
+ echo " sc= ".str_replace(e_FILE."shortcode/","",$scFile)."
";
}
if(E107_DBG_BBSC)
{
- trigger_error("starting shortcode {".$code."}", E_USER_ERROR);
+ trigger_error("starting shortcode {".$code."}", E_USER_ERROR);
}
- $ret = (isset($shortcode) ? eval($shortcode) : "");
+ $ret = eval($shortcode);
if($ret != '' || is_numeric($ret))
{