mirror of
https://github.com/gamaio/UnPS-API.git
synced 2024-12-21 09:42:40 +00:00
Add placeholder to actually delete images
I forgot to put this here - Delete images incomplete
This commit is contained in:
parent
988dbd7eeb
commit
1dfa5cc138
@ -204,6 +204,7 @@ class api{
|
||||
if($result = $idb->query($sql)){
|
||||
$sql = "DELETE FROM `share` WHERE `name` = '$imgName' AND `username` = '$username';";
|
||||
if(!$result = $idb->query($sql)) return 'ERROR: ['.$apidb->error.']';
|
||||
// Unlink images
|
||||
return "Image $imgName deleted";
|
||||
}
|
||||
return "ERROR: Wrong username or image doesn't exist";
|
||||
|
Loading…
Reference in New Issue
Block a user