mirror of
https://github.com/psenough/pouet.net.git
synced 2025-01-16 20:58:27 +01:00
submit-logo.php: delete file if sql-insert failed
This commit is contained in:
parent
3bc7beaf47
commit
858d204ce5
@ -73,7 +73,8 @@ if($submitok) {
|
||||
$query ="INSERT INTO logos SET ";
|
||||
$query.="file='".$custom_name."', ";
|
||||
$query.="author1=".$_SESSION["SCENEID_ID"];
|
||||
mysql_query($query);
|
||||
mysql_query($query)
|
||||
or unlink($logos_path.$custom_name);
|
||||
}
|
||||
|
||||
?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user