diff options
Diffstat (limited to 'app/Model')
-rw-r--r-- | app/Model/Notification.php | 10 | ||||
-rw-r--r-- | app/Model/ProjectDailySummary.php | 2 | ||||
-rw-r--r-- | app/Model/TaskCreation.php | 2 |
3 files changed, 5 insertions, 9 deletions
diff --git a/app/Model/Notification.php b/app/Model/Notification.php index ccda1488..0fa4c9da 100644 --- a/app/Model/Notification.php +++ b/app/Model/Notification.php @@ -3,9 +3,7 @@ namespace Model; use Core\Session; -use Core\Translator; use Core\Template; -use Event\NotificationListener; use Swift_Message; use Swift_Mailer; use Swift_TransportException; @@ -29,8 +27,8 @@ class Notification extends Base * Get a list of people with notifications enabled * * @access public - * @param integer $project_id Project id - * @param array $exlude_users List of user_id to exclude + * @param integer $project_id Project id + * @param array $exclude_users List of user_id to exclude * @return array */ public function getUsersWithNotification($project_id, array $exclude_users = array()) @@ -61,8 +59,8 @@ class Notification extends Base * Get the list of users to send the notification for a given project * * @access public - * @param integer $project_id Project id - * @param array $exlude_users List of user_id to exclude + * @param integer $project_id Project id + * @param array $exclude_users List of user_id to exclude * @return array */ public function getUsersList($project_id, array $exclude_users = array()) diff --git a/app/Model/ProjectDailySummary.php b/app/Model/ProjectDailySummary.php index 6c29758a..0a06bbd4 100644 --- a/app/Model/ProjectDailySummary.php +++ b/app/Model/ProjectDailySummary.php @@ -2,8 +2,6 @@ namespace Model; -use Core\Template; - /** * Project daily summary * diff --git a/app/Model/TaskCreation.php b/app/Model/TaskCreation.php index 6a2c0f9c..7d523214 100644 --- a/app/Model/TaskCreation.php +++ b/app/Model/TaskCreation.php @@ -24,7 +24,7 @@ class TaskCreation extends Base $this->prepare($values); $task_id = $this->persist(Task::TABLE, $values); - if ($task_id) { + if ($task_id !== false) { $this->fireEvents($task_id, $values); } |