diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-05-30 14:17:29 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-05-30 14:17:29 -0400 |
commit | 2e0eb623850ae4003a566ed56f4be94c1aa166bf (patch) | |
tree | 0ae682e9d1bc784664b9d04ae358f5370d9a720e | |
parent | 39f9015bd8d40f42b7e7da156f4d944185163d75 (diff) |
Fix bug in calendar condition
-rw-r--r-- | app/Model/Base.php | 2 |
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).')'; } /** |