UpdateDatabase.php
authorEdward <edward@roojs.com>
Wed, 22 May 2013 07:17:12 +0000 (15:17 +0800)
committerEdward <edward@roojs.com>
Wed, 22 May 2013 07:17:12 +0000 (15:17 +0800)
UpdateDatabase.php

index 3e8ad19..2a63553 100644 (file)
@@ -57,7 +57,9 @@ class Pman_Core_UpdateDatabase extends Pman
     function get($args, $opt)
     {
         if($args == 'Person'){
-            print_r($opt);exit;
+            if(empty($opt['source']) || empty($opt['prefix'])){
+                die("Missing Source directory for json files or prefix for the passwrod! Try -f [JSON file path] -p [prefix]");
+            }
         }
         $this->importSQL();
         $this->runUpdateModulesData();