summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/Console/Base.php2
-rw-r--r--app/Controller/Action.php2
-rw-r--r--app/Model/Notification.php4
3 files changed, 3 insertions, 5 deletions
diff --git a/app/Console/Base.php b/app/Console/Base.php
index 86d78ab3..86da1465 100644
--- a/app/Console/Base.php
+++ b/app/Console/Base.php
@@ -16,7 +16,7 @@ use Symfony\Component\Console\Command\Command;
* @property \Model\ProjectPermission $projectPermission
* @property \Model\ProjectAnalytic $projectAnalytic
* @property \Model\ProjectDailyColumnStats $projectDailyColumnStats
- * @property \Model\ProjectDailyStats $projectDailyColumnStats
+ * @property \Model\ProjectDailyStats $projectDailyStats
* @property \Model\SubtaskExport $subtaskExport
* @property \Model\Task $task
* @property \Model\TaskExport $taskExport
diff --git a/app/Controller/Action.php b/app/Controller/Action.php
index 74a5326d..140c47d3 100644
--- a/app/Controller/Action.php
+++ b/app/Controller/Action.php
@@ -117,7 +117,7 @@ class Action extends Base
if ($valid) {
- if ($this->action->create($values)) {
+ if ($this->action->create($values) !== false) {
$this->session->flash(t('Your automatic action have been created successfully.'));
}
else {
diff --git a/app/Model/Notification.php b/app/Model/Notification.php
index 6a50f7ba..9628e344 100644
--- a/app/Model/Notification.php
+++ b/app/Model/Notification.php
@@ -37,7 +37,6 @@ class Notification extends Base
public function sendOverdueTaskNotifications()
{
$tasks = $this->taskFinder->getOverdueTasks();
- $projects = array();
foreach ($this->groupByColumn($tasks, 'project_id') as $project_id => $project_tasks) {
@@ -157,10 +156,9 @@ class Notification extends Base
*
* @access public
* @param array $user
- * @param array $event_data
* @return boolean
*/
- public function filterNone(array $user, array $event_data)
+ public function filterNone(array $user)
{
return $user['notifications_filter'] == self::FILTER_NONE;
}