Permalink
Browse files

MDL-43656 mod_feedback: availablity date logic incorrect

  • Loading branch information...
1 parent fd4b7f5 commit aea324963dfee857315d147bf0c17659bb43991e @tmuras tmuras committed with danpoltawski Mar 3, 2014
Showing with 4 additions and 4 deletions.
  1. +2 −2 mod/feedback/complete.php
  2. +2 −2 mod/feedback/complete_guest.php
@@ -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) {
@@ -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) {

0 comments on commit aea3249

Please sign in to comment.