ensure we have an observer hash
This commit is contained in:
parent
7fb02752de
commit
d6b1eff70e
@ -526,7 +526,7 @@ function delete_thing_photo($url,$ob_hash) {
|
|||||||
|
|
||||||
// hashes should be 32 bytes.
|
// hashes should be 32 bytes.
|
||||||
|
|
||||||
if(strlen($hash) < 16)
|
if((! $ob_hash) || (strlen($hash) < 16))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
$r = q("delete from photo where xchan = '%s' and photo_usage = %d and resource_id = '%s'",
|
$r = q("delete from photo where xchan = '%s' and photo_usage = %d and resource_id = '%s'",
|
||||||
|
Reference in New Issue
Block a user