UpdateDatabase.php
authorjohn <john@roojs.com>
Wed, 24 Jan 2018 02:48:27 +0000 (10:48 +0800)
committerjohn <john@roojs.com>
Wed, 24 Jan 2018 02:48:27 +0000 (10:48 +0800)
UpdateDatabase.php

index 71a828e..569f300 100644 (file)
@@ -857,8 +857,8 @@ class Pman_Core_UpdateDatabase extends Pman
                 $cm->in_group = $gp->id;
             }
             
-            if($active != 1) {
-                $cm->active = 0;
+            if(!empty($data['active'])) {
+                $cm->active = $data['active'];
             }
             
             require_once $cm->test_class . '.php';