Errors When Displaying Albums

Project:phpAlbum.net
Version:0.4.1-14_fix06
Component:Code
Category:bug
Priority:normal
Assigned:Unassigned
Status:new
Description

These warnings are logged every time a gallery page is requested or refreshed:

Warning
10/10/02 22:00:10 array_slice() [function.array-slice]: The first argument should be an array
/path/to/phpAlbum/main.php (Line:981)
Warning
10/10/02 22:00:10 Invalid argument supplied for foreach()
/path/to/phpAlbum/main.php (Line:982)

The lines in main.php are:

981: $fl=array_slice($filelist,$start_with,$number_of_thmbs);

982: foreach($fl as $key => $record){

Updates

#1 submitted by feold3 on Sun, 2010-10-03 03:19

I forgot to mention: The errors do not seem to prevent the albums from displaying correctly.


style="display:inline-block;width:468px;height:60px"
data-ad-client="ca-pub-8698264690166658"
data-ad-slot="4417389723">