Add placeholder to actually delete images

I forgot to put this here - Delete images incomplete
This commit is contained in:
Arctic Code 2013-07-26 19:59:04 -05:00
parent 988dbd7eeb
commit 1dfa5cc138

View File

@ -204,6 +204,7 @@ class api{
if($result = $idb->query($sql)){ if($result = $idb->query($sql)){
$sql = "DELETE FROM `share` WHERE `name` = '$imgName' AND `username` = '$username';"; $sql = "DELETE FROM `share` WHERE `name` = '$imgName' AND `username` = '$username';";
if(!$result = $idb->query($sql)) return 'ERROR: ['.$apidb->error.']'; if(!$result = $idb->query($sql)) return 'ERROR: ['.$apidb->error.']';
// Unlink images
return "Image $imgName deleted"; return "Image $imgName deleted";
} }
return "ERROR: Wrong username or image doesn't exist"; return "ERROR: Wrong username or image doesn't exist";