summaryrefslogtreecommitdiff
path: root/app/Model/Base.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-05-30 14:17:29 -0400
committerFrederic Guillot <fred@kanboard.net>2015-05-30 14:17:29 -0400
commit2e0eb623850ae4003a566ed56f4be94c1aa166bf (patch)
tree0ae682e9d1bc784664b9d04ae358f5370d9a720e /app/Model/Base.php
parent39f9015bd8d40f42b7e7da156f4d944185163d75 (diff)
Fix bug in calendar condition
Diffstat (limited to 'app/Model/Base.php')
-rw-r--r--app/Model/Base.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Model/Base.php b/app/Model/Base.php
index 03d0f8f0..784545fe 100644
--- a/app/Model/Base.php
+++ b/app/Model/Base.php
@@ -121,7 +121,7 @@ abstract class Base extends \Core\Base
"($start_column <= '$start_time' AND ($end_column = '0' OR $end_column IS NULL))",
);
- return '('.implode(' OR ', $conditions).')';
+ return $start_column.' IS NOT NULL AND '.$start_column.' > 0 AND ('.implode(' OR ', $conditions).')';
}
/**