diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2018-08-29 18:08:45 +0200 |
---|---|---|
committer | Igor Scheller <igor.scheller@igorshp.de> | 2018-08-29 18:11:35 +0200 |
commit | 175c335810817ff3e989f368889274d3f09c08b1 (patch) | |
tree | b0a6a68003a1d5c637fcfb956b598f5cb56fac02 /includes/pages/user_myshifts.php | |
parent | 6ee738f82be9a6052f0759aed540d6d09027105b (diff) |
Db::selectOne() should return null if result is empty
Diffstat (limited to 'includes/pages/user_myshifts.php')
-rw-r--r-- | includes/pages/user_myshifts.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/pages/user_myshifts.php b/includes/pages/user_myshifts.php index 5819f5c6..b61fc1e4 100644 --- a/includes/pages/user_myshifts.php +++ b/includes/pages/user_myshifts.php @@ -71,7 +71,7 @@ function user_myshifts() $shifts_user['UID'], ] ); - if (count($shift) > 0) { + if (!empty($shift)) { $freeloaded = $shift['freeloaded']; $freeload_comment = $shift['freeload_comment']; |