mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
d0a256e647
commit
59147d10d9
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user