Commit 2f002700 authored by Marco Pivetta's avatar Marco Pivetta

Merge pull request #581 from JeroenDeDauw/ternary

Get rid of weird ternary statement
parents 120b30ba d9ee99c2
......@@ -58,7 +58,7 @@ class Index extends AbstractAsset implements Constraint
*/
public function __construct($indexName, array $columns, $isUnique = false, $isPrimary = false, array $flags = array())
{
$isUnique = ($isPrimary)?true:$isUnique;
$isUnique = $isUnique || $isPrimary;
$this->_setName($indexName);
$this->_isUnique = $isUnique;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment