From d6b1eff70ef579036f706fde6c2ecfd8152317cb Mon Sep 17 00:00:00 2001 From: zotlabs Date: Tue, 3 Oct 2017 17:05:32 -0700 Subject: ensure we have an observer hash --- include/photo/photo_driver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/photo') diff --git a/include/photo/photo_driver.php b/include/photo/photo_driver.php index 3b6beabf5..5eb1f9113 100644 --- a/include/photo/photo_driver.php +++ b/include/photo/photo_driver.php @@ -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'", -- cgit v1.2.3