diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-01-24 04:31:45 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-01-24 04:31:45 +0000 |
commit | f881a29430dc6d1cbca1a74a22048dd605a27ad0 (patch) | |
tree | 28a453517b65621b981cefed383b05b4964e062b /lib/class | |
parent | b21d7bb720f7cb78ded502091d74eab16d50b265 (diff) | |
download | ampache-f881a29430dc6d1cbca1a74a22048dd605a27ad0.tar.gz ampache-f881a29430dc6d1cbca1a74a22048dd605a27ad0.tar.bz2 ampache-f881a29430dc6d1cbca1a74a22048dd605a27ad0.zip |
slight improvement, I hope to french translation, still a few missing translations and translations that need improvement plus populaire --> les plus populaire
Diffstat (limited to 'lib/class')
-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; |