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

Commit

Permalink
Fix the unique indexh check
Browse files Browse the repository at this point in the history
fixes issue 26
  • Loading branch information
canni committed Feb 1, 2011
1 parent 112e554 commit 1f0324f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EMongoDocument.php
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ public function init()
{
$indexes[$index['name']] = array(
'key'=>$index['key'],
'unique'=>$index['unique'],
'unique'=>isset($index['unique']) ? $index['unique'] : false,
);
}
self::$_indexes[$this->getCollectionName()] = $indexes;
Expand Down

0 comments on commit 1f0324f

Please sign in to comment.