From 07856976a0e64b99048cbc43adce95cca50d4f2e Mon Sep 17 00:00:00 2001 From: Matthias Rella Date: Sat, 1 Mar 2014 23:34:53 +0100 Subject: [PATCH] fixed checking whether array key is set --- framework/Db/lib/Horde/Db/Adapter/Base/Schema.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/Db/lib/Horde/Db/Adapter/Base/Schema.php b/framework/Db/lib/Horde/Db/Adapter/Base/Schema.php index 1a9ef6776f9..27c690c7240 100644 --- a/framework/Db/lib/Horde/Db/Adapter/Base/Schema.php +++ b/framework/Db/lib/Horde/Db/Adapter/Base/Schema.php @@ -900,7 +900,7 @@ public function typeToSql($type, $limit = null, $precision = null, $sql = is_array($native) ? $native['name'] : $native; if ($type == 'decimal' || - isset($native['precision']) || isset($native['scale']) || + is_array($native) && (isset($native['precision']) || isset($native['scale'])) || isset($precision) || isset($scale)) { $nativePrec = isset($native['precision']) ? $native['precision'] : null; $nativeScale = isset($native['scale']) ? $native['scale'] : null;