summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorJan-Philipp Litza <janphilipp@litza.de>2012-12-28 18:45:26 +0100
committerJan-Philipp Litza <janphilipp@litza.de>2012-12-28 18:45:26 +0100
commit01c9d1a810f293c6ec379b8ec8d3b1b1dabb6bd4 (patch)
tree6ef5d3afc739b829f750502824f7539644bc4e52 /includes
parentf759296db3277abb6416349e6c5de15a7db6bbcc (diff)
hotfix: show completely free shifts when searching for free shifts
Diffstat (limited to 'includes')
-rw-r--r--includes/pages/user_shifts.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/pages/user_shifts.php b/includes/pages/user_shifts.php
index 22f26da8..c26ad668 100644
--- a/includes/pages/user_shifts.php
+++ b/includes/pages/user_shifts.php
@@ -357,7 +357,7 @@ function view_user_shifts() {
if (count($_SESSION['user_shifts']['filled']) == 1) {
if ($_SESSION['user_shifts']['filled'][0] == 0)
$SQL .= "
- AND NOT (nat.`count` <= entries.`count`) ";
+ AND (nat.`count` > entries.`count` OR entries.`count` IS NULL) ";
elseif ($_SESSION['user_shifts']['filled'][0] == 1)
$SQL .= "
AND (nat.`count` <= entries.`count`) ";