fix compatibility with latest versions of PHP
authorAlan Knowles <alan@roojs.com>
Wed, 6 Nov 2019 02:12:59 +0000 (10:12 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 6 Nov 2019 02:12:59 +0000 (10:12 +0800)
DB/DataObject.php

index 53e3f0f..5d16559 100644 (file)
@@ -4379,10 +4379,10 @@ class DB_DataObject extends DB_DataObject_Overload
                 // todo: date time.....
                 case  ($val & DB_DATAOBJECT_STR):
                     $ret[$key] = Validate::string($this->$key, VALIDATE_PUNCTUATION . VALIDATE_NAME);
-                    continue;
+                    continue 2;
                 case  ($val & DB_DATAOBJECT_INT):
                     $ret[$key] = Validate::number($this->$key, array('decimal'=>'.'));
-                    continue;
+                    continue 2;
             }
         }
         // if any of the results are false or an object (eg. PEAR_Error).. then return the array..