Skip to content

Commit

Permalink
Merge pull request Zavy86#231 from ffiesta/master
Browse files Browse the repository at this point in the history
Update submit.php
  • Loading branch information
Zavy86 authored Jan 8, 2025
2 parents 927122f + 2c7b899 commit 27ee132
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.72
1.0.73
2 changes: 1 addition & 1 deletion submit.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ function image_upload_ajax(){
// make file name
$file_name=strtolower(str_replace(" ","-",$image['name']));
// check for posted image
if($image['tmp_name']){
if(isset($image['tmp_name']) && $image['tmp_name']){
if(move_uploaded_file($image['tmp_name'],$DOC->DIR.$file_name)){$uploaded=true;}
// check for pasted image
}elseif(strlen($image['base64'])){
Expand Down

0 comments on commit 27ee132

Please sign in to comment.