Skip to content

Commit

Permalink
MDL-43656 mod_feedback: availablity date logic incorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
tmuras authored and danpoltawski committed Mar 3, 2014
1 parent dc8f55c commit 1298acc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions mod/feedback/complete.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@

//check, if the feedback is open (timeopen, timeclose)
$checktime = time();
$feedback_is_closed = ($feedback->timeopen > $checktime) OR
($feedback->timeclose < $checktime AND
$feedback_is_closed = ($feedback->timeopen > $checktime) ||
($feedback->timeclose < $checktime &&
$feedback->timeclose > 0);

if ($feedback_is_closed) {
Expand Down
4 changes: 2 additions & 2 deletions mod/feedback/complete_guest.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@
//check, if the feedback is open (timeopen, timeclose)
$checktime = time();

$feedback_is_closed = ($feedback->timeopen > $checktime) OR
($feedback->timeclose < $checktime AND
$feedback_is_closed = ($feedback->timeopen > $checktime) ||
($feedback->timeclose < $checktime &&
$feedback->timeclose > 0);

if ($feedback_is_closed) {
Expand Down

0 comments on commit 1298acc

Please sign in to comment.