diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-11-15 01:06:38 -0800 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-11-15 01:06:38 -0800 |
commit | 49e9f771ffb524e2aa30748837fd4fca9b42f700 (patch) | |
tree | f38e59bf66cac38b4c31f14049d964474b6e8d11 /lib | |
parent | 6ef39931cb484286e7bb7bcd8373060d3a8a5ffc (diff) | |
parent | 9c1c8d57f0ba8fb0d65c65141b8ffdf118bcc012 (diff) | |
download | nextcloud-server-49e9f771ffb524e2aa30748837fd4fca9b42f700.tar.gz nextcloud-server-49e9f771ffb524e2aa30748837fd4fca9b42f700.zip |
Merge pull request #5813 from owncloud/fix-4736-master
Don't set a default value when there isn't a default specified
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/db/mdb2schemareader.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/db/mdb2schemareader.php b/lib/private/db/mdb2schemareader.php index b7128a2f176..ad4c39a9935 100644 --- a/lib/private/db/mdb2schemareader.php +++ b/lib/private/db/mdb2schemareader.php @@ -186,7 +186,7 @@ class MDB2SchemaReader { } } if (isset($name) && isset($type)) { - if (empty($options['default'])) { + if (isset($options['default']) && empty($options['default'])) { if (empty($options['notnull']) || !$options['notnull']) { unset($options['default']); $options['notnull'] = false; |