dever пре 6 година
родитељ
комит
f93a653f4b
1 измењених фајлова са 1 додато и 4 уклоњено
  1. 1 4
      act/lib/Pay.php

+ 1 - 4
act/lib/Pay.php

@@ -225,10 +225,7 @@ class Pay
 
                     $active = Dever::load('act/order')->getActive($order['product_id']);
                     $active_state = true;
-                    if ($active && $active['status'] == 2) {
-                        //$active_state = false;
-                    }
-                    if ($active && time() > $active['end']) {
+                    if ($active && $active['status'] == 1 && time() > $active['end']) {
                         $active_state = false;
                     }
                     if ($active_state) {