diff options
Diffstat (limited to 'lib/class/localplay.class.php')
-rw-r--r-- | lib/class/localplay.class.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/class/localplay.class.php b/lib/class/localplay.class.php index 8729b2df..4c12aaef 100644 --- a/lib/class/localplay.class.php +++ b/lib/class/localplay.class.php @@ -331,8 +331,7 @@ class Localplay { * get * This calls the get function of the player and then returns * the array of current songs for display or whatever - * Null is returned on failure here because the PHP count() - * function will return 1 on a value of 'false' + * an empty array is passed on failure */ function get() { @@ -342,7 +341,7 @@ class Localplay { if (!count($data) OR !is_array($data)) { debug_event('localplay','Error Unable to get song info, check ' . $this->type . ' controller','1'); - return NULL; + return array(); } return $data; |