diff --git a/core/model/fieldtypes/Varchar.php b/core/model/fieldtypes/Varchar.php index 1c20468aa..c37fe0335 100644 --- a/core/model/fieldtypes/Varchar.php +++ b/core/model/fieldtypes/Varchar.php @@ -4,7 +4,7 @@ class Varchar extends DBField { protected $size; function __construct($name, $size = 50) { - $this->size = $size; + $this->size = $size ? $size : 50; parent::__construct($name); } function requireField() {