Fix foreach() error when uploading first preview

This commit is contained in:
psychoticwolf%carolina.rr.com 2004-11-21 12:37:03 +00:00
parent 8d2c30e8ed
commit fcf5d0a64c

View File

@ -135,6 +135,7 @@ echo"Delete File? <input name=\"delete_$i\" type=\"checkbox\" value=\"$previewid
if ($_POST["submit"]=="Add Preview") {
//Compute the maxval for the filename for the new file.
if (!$filename_array) { $filename_array=array(); }
foreach ( $filename_array as $filename) {
$exploded_filename = explode("-", $filename);
$count = count($exploded_filename)-1;