aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-04-02 22:20:37 -0700
committerMario Vavti <mario@mariovavti.com>2017-04-03 10:55:42 +0200
commita9bda2b12e3d393fa854e23207a081052e2e7bfd (patch)
tree2eed3379df931bccd56dd7be8e3a56394fa3e0f9 /include
parent5fb7ea8dbd2d628fffc409c6bc78a76d603b5fcb (diff)
downloadvolse-hubzilla-a9bda2b12e3d393fa854e23207a081052e2e7bfd.tar.gz
volse-hubzilla-a9bda2b12e3d393fa854e23207a081052e2e7bfd.tar.bz2
volse-hubzilla-a9bda2b12e3d393fa854e23207a081052e2e7bfd.zip
sql error photos_albums_list with non-logged-in viewer
Diffstat (limited to 'include')
-rwxr-xr-xinclude/items.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/items.php b/include/items.php
index 42661e2b1..933b9ef81 100755
--- a/include/items.php
+++ b/include/items.php
@@ -1826,9 +1826,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 {