UpdateDatabase.php
authorAlan Knowles <alan@roojs.com>
Fri, 15 Nov 2013 06:12:35 +0000 (14:12 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 15 Nov 2013 06:12:35 +0000 (14:12 +0800)
UpdateDatabase.php

index 2b81720..25540e9 100644 (file)
@@ -117,7 +117,7 @@ class Pman_Xtuple_UpdateDatabase extends Pman
         
         
         foreach($this->opts as $o=>$v) {
-            if (preg_match('/^json-/', $o) || empty($v)) {
+            if (!preg_match('/^json-/', $o) || empty($v)) {
                 continue;
             }
             $type = str_replace('_', '-', substr($o,6));