diff options
author | zotlabs <mike@macgirvin.com> | 2017-04-02 22:20:37 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-04-02 22:20:37 -0700 |
commit | 26125bcf0b8ce98fa4522f89792d7e77f25ff1ca (patch) | |
tree | a41795b80623765cc36ba3dd3bfc5a8f47141e47 /include | |
parent | 263efbfe39d36a7133fca82e8e689435255fd9e2 (diff) | |
download | volse-hubzilla-26125bcf0b8ce98fa4522f89792d7e77f25ff1ca.tar.gz volse-hubzilla-26125bcf0b8ce98fa4522f89792d7e77f25ff1ca.tar.bz2 volse-hubzilla-26125bcf0b8ce98fa4522f89792d7e77f25ff1ca.zip |
sql error photos_albums_list with non-logged-in viewer
Diffstat (limited to 'include')
-rwxr-xr-x | include/items.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/items.php b/include/items.php index ea72d1d4e..e3147dea4 100755 --- a/include/items.php +++ b/include/items.php @@ -1776,9 +1776,12 @@ logger('revision: ' . $arr['revision']); intval($arr['revision']) ); - if($r && count($r)) { + if($r) { + // This will gives us a fresh copy of what's now in the DB and undo the db escaping, + // which really messes up the notifications + $current_post = $r[0]['id']; - $arr = $r[0]; // This will gives us a fresh copy of what's now in the DB and undo the db escaping, which really messes up the notifications + $arr = $r[0]; logger('item_store: created item ' . $current_post, LOGGER_DEBUG); } else { |