sync
authorAlan Knowles <alan@akbkhome.com>
Thu, 31 May 2012 05:44:02 +0000 (13:44 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 31 May 2012 05:44:02 +0000 (13:44 +0800)
Generator.php
JsTemplate.php

index a3da329..d7bc403 100644 (file)
@@ -347,6 +347,7 @@ touch Pman/????/DataObjects/".ucfirst($this->table).".php
         $cli = $options['cli'];
 
         foreach($this->tables as $this->table) {
+            
             $this->table        = trim($this->table);
             $tn  = strtolower($this->table);
             $mod = $this->modmap[$tn];
index 67f0e2a..c3b1281 100644 (file)
@@ -111,7 +111,7 @@ class Pman_Core_JsTemplate extends Pman {
         
         $out= array();
         
-        $head = "$name = function(t)\n{\n    var ret = [];\n\n";
+        $head = "$name = function(t)\n{\n    var ret = '';\n\n";
         
         $funcs = array();
         // do not allow nested functions..?