mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 13:25:37 +00:00
Fix foreach() error when uploading first preview
This commit is contained in:
parent
8d2c30e8ed
commit
fcf5d0a64c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user