diff options
author | zotlabs <mike@macgirvin.com> | 2017-10-03 17:05:32 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-10-03 17:05:32 -0700 |
commit | d6b1eff70ef579036f706fde6c2ecfd8152317cb (patch) | |
tree | a28d32e3b9f599143c23919f9cf0832849c04eff /include/photo | |
parent | 7fb02752de4e3ee62d84eaf30bcb4c155ebabf30 (diff) | |
download | volse-hubzilla-d6b1eff70ef579036f706fde6c2ecfd8152317cb.tar.gz volse-hubzilla-d6b1eff70ef579036f706fde6c2ecfd8152317cb.tar.bz2 volse-hubzilla-d6b1eff70ef579036f706fde6c2ecfd8152317cb.zip |
ensure we have an observer hash
Diffstat (limited to 'include/photo')
-rw-r--r-- | include/photo/photo_driver.php | 2 |
1 files changed, 1 insertions, 1 deletions
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'", |