summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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).')';
}
/**