Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
No need for an additional check as getUniqueFields() always returns a…
Browse files Browse the repository at this point in the history
…n array
  • Loading branch information
Toflar committed Mar 30, 2015
1 parent 3c7e12c commit 2337fa6
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions system/modules/core/library/Contao/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -273,12 +273,7 @@ public static function getUniqueFields()
{
$objDca = \DcaExtractor::getInstance(static::getTable());

if ($objDca->hasUniqueFields())
{
return $objDca->getUniqueFields();
}

return array();
return $objDca->getUniqueFields();
}


Expand Down

0 comments on commit 2337fa6

Please sign in to comment.