hotfix: show completely free shifts when searching for free shifts

This commit is contained in:
Jan-Philipp Litza 2012-12-28 18:45:26 +01:00
parent f759296db3
commit 01c9d1a810
1 changed files with 1 additions and 1 deletions

View File

@ -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`) ";