diff --git a/e107_plugins/calendar_menu/calendar_shortcodes.php b/e107_plugins/calendar_menu/calendar_shortcodes.php index 4d0d0c7d4..c50640b96 100644 --- a/e107_plugins/calendar_menu/calendar_shortcodes.php +++ b/e107_plugins/calendar_menu/calendar_shortcodes.php @@ -198,7 +198,7 @@ class event_calendar_shortcodes private $prop; // Start date for new event entry private $ds = ''; // Display type for some shortcodes (mostly event listing) - //private $ourDB; // For when we need a DB object + private $ourDB; // For when we need a DB object public function __construct() @@ -363,19 +363,19 @@ class event_calendar_shortcodes // Categories listing public function sc_ec_nav_categories($parm = '') { - /*if ($this->ourDB == NULL) + if ($this->ourDB == NULL) { - $this->ourDB = new db; // @todo use new method - Moc: done, check if functional. + $this->ourDB = new db; // @todo use new method } - */ - $sql = e107::getDb(); + ($parm == 'nosubmit') ? $insert = '' : $insert = "onchange='this.form.submit()'"; $ret = "