Skip to content

Commit

Permalink
changed getLocations(). Fixes #3
Browse files Browse the repository at this point in the history
  • Loading branch information
kanduvisla committed Sep 26, 2012
1 parent 807b4ad commit 4058874
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion extension.driver.php
Expand Up @@ -50,7 +50,14 @@ public function appendPreferences($context)
*/
public function getLocations()
{
return array_filter(unserialize(Symphony::Configuration()->get('trusted_locations', 'force_download')));
$locations = unserialize(Symphony::Configuration()->get('trusted_locations', 'force_download'));
if(is_array($locations))
{
return array_filter($locations);
} else {
return array();
}

}

/**
Expand Down

0 comments on commit 4058874

Please sign in to comment.