$size is always 50 or something else if you set a default value for a function argument.

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41473 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Matt Peel 2007-09-09 03:30:53 +00:00
parent aaabe7ee94
commit d0a256e647

View File

@ -4,7 +4,7 @@ class Varchar extends DBField {
protected $size;
function __construct($name, $size = 50) {
$this->size = $size ? $size : 50;
$this->size = $size;
parent::__construct($name);
}
function requireField() {