Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-11-15 13:06:38 +0400
committerThomas Müller <thomas.mueller@tmit.eu>2013-11-15 13:06:38 +0400
commit49e9f771ffb524e2aa30748837fd4fca9b42f700 (patch)
treef38e59bf66cac38b4c31f14049d964474b6e8d11 /lib
parent6ef39931cb484286e7bb7bcd8373060d3a8a5ffc (diff)
parent9c1c8d57f0ba8fb0d65c65141b8ffdf118bcc012 (diff)
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.php2
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;