From af08f271023171a97b7b37ade6a262ae6b44976b Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Mon, 8 Apr 2013 20:48:07 +0200 Subject: [PATCH] make methods match with abstract method definition --- inc/inc.ClassEmail.php | 2 +- inc/inc.ClassNotify.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/inc/inc.ClassEmail.php b/inc/inc.ClassEmail.php index 71e4fd437..2239e03cb 100644 --- a/inc/inc.ClassEmail.php +++ b/inc/inc.ClassEmail.php @@ -67,7 +67,7 @@ class SeedDMS_Email extends SeedDMS_Notify { return true; } /* }}} */ - function toList($sender, $recipients, $subject, $message, $params) { /* {{{ */ + function toList($sender, $recipients, $subject, $message, $params=array()) { /* {{{ */ if ((!is_object($sender) && strcasecmp(get_class($sender), "SeedDMS_Core_User")) || (!is_array($recipients) && count($recipients)==0)) { return -1; diff --git a/inc/inc.ClassNotify.php b/inc/inc.ClassNotify.php index d61360b2f..ea32608bc 100644 --- a/inc/inc.ClassNotify.php +++ b/inc/inc.ClassNotify.php @@ -31,9 +31,9 @@ abstract class SeedDMS_Notify { */ protected $sender; - abstract function toIndividual($sender, $recipient, $subject, $message, $params); - abstract function toGroup($sender, $groupRecipient, $subject, $message, $params); - abstract function toList($sender, $recipients, $subject, $message, $params); + abstract function toIndividual($sender, $recipient, $subject, $message, $params=array()); + abstract function toGroup($sender, $groupRecipient, $subject, $message, $params=array()); + abstract function toList($sender, $recipients, $subject, $message, $params=array()); function replaceMarker($text) { global $settings;