php7 fixes
[Pman.Builder] / FormToSQL.php
index a0d451a..835ee30 100644 (file)
@@ -139,7 +139,7 @@ class Pman_Builder_FormToSQL extends Pman {
                     $f->type = $type;
                     $f->size = $len;
                     $this->cols[] = $f;
-                    continue;
+                    break;
                 }
                 // otherwise it's a datasource based one...
                 // our 18N fields are a bit odd here...
@@ -149,7 +149,7 @@ class Pman_Builder_FormToSQL extends Pman {
                     $f->size = 8;
                     $f->default = "''";
                     $this->cols[] = $f;
-                    continue;
+                    break;
                 }
                 $f->name = isset($o->hiddenName) ? $o->hiddenName : $o->name; 
                 $f->type = 'INT';
@@ -157,14 +157,14 @@ class Pman_Builder_FormToSQL extends Pman {
                 $f->extra = "NOT NULL";
                 $f->default = 0;
                 $this->cols[] = $f;
-                continue;
+                break;
             
             case 'TextArea':
                 $f->name = $o->name;
                 $f->type = 'TEXT';
                 
                 $this->cols[] = $f;
-                continue;
+                break;
             
             case 'DateField':
             case 'NumberField':
@@ -186,7 +186,7 @@ class Pman_Builder_FormToSQL extends Pman {
                 array_unshift($this->cols, $f); 
                 break;
             default:
-                continue;
+                break;
             
         }