UpdateDatabase.php
authorAlan Knowles <alan@roojs.com>
Fri, 22 Jun 2018 04:43:54 +0000 (12:43 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 22 Jun 2018 04:43:54 +0000 (12:43 +0800)
UpdateDatabase.php

index 5fb08cb..03eacae 100644 (file)
@@ -178,8 +178,7 @@ class Pman_Core_UpdateDatabase extends Pman
         $this->opts = $opts;
         
         if (!empty($opts['debug'])) {
-            echo "Setting debug Level : {$opts['debug']}\n";
-            DB_DataObject::DebugLevel($opts['debug']);
+             DB_DataObject::DebugLevel($opts['debug']);
         }
       
         
@@ -203,7 +202,10 @@ class Pman_Core_UpdateDatabase extends Pman
         if (!empty($opts['only-module-sql'])) {
             return;
         }
-        
+        if (!empty($opts['debug'])) {
+             DB_DataObject::DebugLevel($opts['debug']);
+        }
+      
         $this->runUpdateModulesData();
         
         if (!empty($opts['add-company']) && !in_array('Core', $this->disabled)) {