Reverted previous change - null is a valid value for an argument, but not for an if statement.

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41475 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Matt Peel 2007-09-09 04:02:54 +00:00
parent d0a256e647
commit 59147d10d9
1 changed files with 1 additions and 1 deletions

View File

@ -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() {