diff --git a/e107_plugins/pm/e_shortcode.php b/e107_plugins/pm/e_shortcode.php index ef293fd6e..890f5e57b 100644 --- a/e107_plugins/pm/e_shortcode.php +++ b/e107_plugins/pm/e_shortcode.php @@ -26,7 +26,7 @@ class pm_shortcodes extends e_shortcode include_lan(e_PLUGIN.'pm/languages/'.e_LANGUAGE.'.php'); require_once(e_PLUGIN."pm/pm_func.php"); - $this->pm = new pmbox_manager; + $this->pm = new pmbox_manager(); $this->prefs = $this->pm->prefs(); diff --git a/e107_plugins/pm/pm_func.php b/e107_plugins/pm/pm_func.php index 073155d4f..9ae73b594 100755 --- a/e107_plugins/pm/pm_func.php +++ b/e107_plugins/pm/pm_func.php @@ -17,7 +17,7 @@ class pmbox_manager protected $pmPrefs = array(); protected $pmDB; - public function __construct($prefs) + public function __construct($prefs='') { $this->pmDB = e107::getDb(); // $this->pmPrefs = $prefs;