From 2337fa60114952936e7aae4a8155a608c0f67521 Mon Sep 17 00:00:00 2001 From: Yanick Witschi Date: Mon, 30 Mar 2015 13:54:03 +0200 Subject: [PATCH] No need for an additional check as getUniqueFields() always returns an array --- system/modules/core/library/Contao/Model.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/system/modules/core/library/Contao/Model.php b/system/modules/core/library/Contao/Model.php index 9e6abd3c40..3aa4e748da 100644 --- a/system/modules/core/library/Contao/Model.php +++ b/system/modules/core/library/Contao/Model.php @@ -273,12 +273,7 @@ public static function getUniqueFields() { $objDca = \DcaExtractor::getInstance(static::getTable()); - if ($objDca->hasUniqueFields()) - { - return $objDca->getUniqueFields(); - } - - return array(); + return $objDca->getUniqueFields(); }