UpdateDatabase.php
authorAlan Knowles <alan@roojs.com>
Fri, 15 Nov 2013 05:46:37 +0000 (13:46 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 15 Nov 2013 05:46:37 +0000 (13:46 +0800)
UpdateDatabase.php

index 2a8d3d7..20c2dcb 100644 (file)
@@ -54,6 +54,10 @@ class Pman_Xtuple_UpdateDatabase extends Pman
     // before any data is imported / started..
     function checkOpts()
     {
+        $core_opts = HTML_FlexyFramework::get()->page->opts;
+        if (!empty($core_opts['init']) && empty($core_opts['base'])) {
+            die("init must be used before base!");
+        }