Fix bug in calendar condition

This commit is contained in:
Frederic Guillot 2015-05-30 14:17:29 -04:00
parent 39f9015bd8
commit 2e0eb62385
1 changed files with 1 additions and 1 deletions

View File

@ -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).')';
}
/**