summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2013-09-13 17:45:27 +0200
committerBart Visscher <bartv@thisnet.nl>2014-02-12 09:09:51 +0100
commit1fb5f96c37ab8738ba96b97bc04a75b0fa911aca (patch)
tree197c3e56fba806c086fab37c97825dc7e363a1f8 /lib
parentaddd0fba3887edafd03b3c22efa6f8276e1884dc (diff)
downloadnextcloud-server-1fb5f96c37ab8738ba96b97bc04a75b0fa911aca.tar.gz
nextcloud-server-1fb5f96c37ab8738ba96b97bc04a75b0fa911aca.zip
Style fixes
Diffstat (limited to 'lib')
-rw-r--r--lib/private/db/mdb2schemareader.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/db/mdb2schemareader.php b/lib/private/db/mdb2schemareader.php
index b1fd2454cb0..f9a76786c3e 100644
--- a/lib/private/db/mdb2schemareader.php
+++ b/lib/private/db/mdb2schemareader.php
@@ -288,12 +288,13 @@ class MDB2SchemaReader {
if (!empty($fields)) {
if (isset($primary) && $primary) {
$table->setPrimaryKey($fields, $name);
- } else
+ } else {
if (isset($unique) && $unique) {
$table->addUniqueIndex($fields, $name);
} else {
$table->addIndex($fields, $name);
}
+ }
} else {
throw new \DomainException('Empty index definition: ' . $name . ' options:' . print_r($fields, true));
}