summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/db/mdb2schemareader.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/db/mdb2schemareader.php b/lib/db/mdb2schemareader.php
index c506aa26521..4dc1fd4616d 100644
--- a/lib/db/mdb2schemareader.php
+++ b/lib/db/mdb2schemareader.php
@@ -156,7 +156,7 @@ class OC_DB_MDB2SchemaReader {
unset($options['default']);
}
}
- if ($type == 'integer') {
+ if ($type == 'integer' && isset($options['length'])) {
$length = $options['length'];
if ($length < 4) {
$type = 'smallint';