Permalink
Browse files

MDL-43656 mod_feedback: availablity date logic incorrect

  • Loading branch information...
1 parent 2978623 commit 7b839b0ec1d3d7fdfe7f76066c49829936a2390e @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
View
4 mod/feedback/complete.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) {
View
4 mod/feedback/complete_guest.php
@@ -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 7b839b0

Please sign in to comment.