From c57fe51ad8b9901271c300c154b33814d2871784 Mon Sep 17 00:00:00 2001 From: Cameron Date: Wed, 13 Apr 2016 16:50:07 -0700 Subject: [PATCH] Fixes #1530 - PHP Warning in debug mode. --- e107_plugins/pm/e_shortcode.php | 2 +- e107_plugins/pm/pm_func.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;