ensure we have an observer hash

This commit is contained in:
zotlabs 2017-10-03 17:05:32 -07:00
parent 7fb02752de
commit d6b1eff70e

View File

@ -526,7 +526,7 @@ function delete_thing_photo($url,$ob_hash) {
// hashes should be 32 bytes.
if(strlen($hash) < 16)
if((! $ob_hash) || (strlen($hash) < 16))
return;
$r = q("delete from photo where xchan = '%s' and photo_usage = %d and resource_id = '%s'",