Skip to content
This repository has been archived by the owner on Jun 11, 2021. It is now read-only.

Commit

Permalink
Made documentset export compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
tholder committed Dec 20, 2012
1 parent 94c9295 commit 26acbc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/Shanty/Mongo/DocumentSet.php
Expand Up @@ -180,10 +180,10 @@ public function setProperty($index, $document)
*
* @return array
*/
public function export()
public function export($skipRequired = false)
{
// Since this is an array, fill in empty index's with null
$exportData = parent::export();
$exportData = parent::export($skipRequired);

// Fix PHP "max(): Array must contain at least one element" bug
// if DocumentSet has no data
Expand Down

0 comments on commit 26acbc5

Please sign in to comment.