aboutsummaryrefslogtreecommitdiffstats
path: root/include/photo/photo_driver.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-10-03 17:05:32 -0700
committerzotlabs <mike@macgirvin.com>2017-10-03 17:05:32 -0700
commitd6b1eff70ef579036f706fde6c2ecfd8152317cb (patch)
treea28d32e3b9f599143c23919f9cf0832849c04eff /include/photo/photo_driver.php
parent7fb02752de4e3ee62d84eaf30bcb4c155ebabf30 (diff)
downloadvolse-hubzilla-d6b1eff70ef579036f706fde6c2ecfd8152317cb.tar.gz
volse-hubzilla-d6b1eff70ef579036f706fde6c2ecfd8152317cb.tar.bz2
volse-hubzilla-d6b1eff70ef579036f706fde6c2ecfd8152317cb.zip
ensure we have an observer hash
Diffstat (limited to 'include/photo/photo_driver.php')
-rw-r--r--include/photo/photo_driver.php2
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'",