diff options
Diffstat (limited to 'lib/class/localplay.class.php')
-rw-r--r-- | lib/class/localplay.class.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/class/localplay.class.php b/lib/class/localplay.class.php index 3f8dbb8a..e048dd17 100644 --- a/lib/class/localplay.class.php +++ b/lib/class/localplay.class.php @@ -224,6 +224,9 @@ class Localplay { // Load the controller and then check for its preferences $localplay = new Localplay($controller); + // If we can't even load it no sense in going on + if (!isset($localplay->_player)) { return false; } + $preferences = $localplay->get_preferences(); foreach ($preferences as $preference) { @@ -575,7 +578,7 @@ class Localplay { */ public function get_preferences() { - $preferences = $this->_player->preferences(); + $preferences = $this->_player->get_preferences(); return $preferences; |