From d0a256e64733b4dd37b3d82a34734102b14e287c Mon Sep 17 00:00:00 2001 From: Matt Peel Date: Sun, 9 Sep 2007 03:30:53 +0000 Subject: [PATCH] $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 --- core/model/fieldtypes/Varchar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/model/fieldtypes/Varchar.php b/core/model/fieldtypes/Varchar.php index c37fe0335..1c20468aa 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 ? $size : 50; + $this->size = $size; parent::__construct($name); } function requireField() {