diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-05-14 07:12:15 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-05-14 07:12:15 +0000 |
commit | 641e7de6373bcbf7ffb5ac3a8b737fb31f4f33c7 (patch) | |
tree | 66d335c53b446971aeee36de7a2ba9e6504a302b /lib/album.lib.php | |
parent | 779f4bf4e560d7f415ea51a96ed547831745a8dc (diff) | |
download | ampache-641e7de6373bcbf7ffb5ac3a8b737fb31f4f33c7.tar.gz ampache-641e7de6373bcbf7ffb5ac3a8b737fb31f4f33c7.tar.bz2 ampache-641e7de6373bcbf7ffb5ac3a8b737fb31f4f33c7.zip |
catalog build technically works now, still working out some issues with the dynamic updating of the current state
Diffstat (limited to 'lib/album.lib.php')
-rw-r--r-- | lib/album.lib.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/album.lib.php b/lib/album.lib.php index ceb6cdf2..94ee1726 100644 --- a/lib/album.lib.php +++ b/lib/album.lib.php @@ -78,6 +78,8 @@ function get_random_albums($count='') { $total = count($albums); + if ($total == '0') { return array(); } + for ($i=0; $i <= $count; $i++) { $record = rand(0,$total); if (isset($results[$record]) || !$albums[$record]) { $i--; } |