Hi all
I made a php-page which allows users to delete pictures or links they have stored into the server with the upload.php. When the directory is empty and I'll try to browse it using the browse.php (editor -> Insert/Edit Image -> Browse Server) I get the following errors:
Warning: Invalid argument supplied for foreach() in ...
Warning: sort() expects parameter 1 to be array, null given in ...
Warning: Invalid argument supplied for foreach() in ...
Can anyone tell me how I could prevent these errors and instead print something like "No pictures".
Thank You
jell-o
I made a php-page which allows users to delete pictures or links they have stored into the server with the upload.php. When the directory is empty and I'll try to browse it using the browse.php (editor -> Insert/Edit Image -> Browse Server) I get the following errors:
Warning: Invalid argument supplied for foreach() in ...
Warning: sort() expects parameter 1 to be array, null given in ...
Warning: Invalid argument supplied for foreach() in ...
Can anyone tell me how I could prevent these errors and instead print something like "No pictures".
Thank You
jell-o