Skip to content

Commit

Permalink
model: fixed getConfiguration() error when no repository was defined
Browse files Browse the repository at this point in the history
  • Loading branch information
JanTvrdik committed Aug 29, 2015
1 parent 7920016 commit fff833c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class Model extends Object implements IModel
*/
public static function getConfiguration(array $repositories)
{
$config = [];
$config = [[], [], []];
foreach ($repositories as $name => $repository) {
$className = is_object($repository) ? get_class($repository) : $repository;
$config[0][$className] = TRUE;
Expand Down

0 comments on commit fff833c

Please sign in to comment.