make comments work again
This commit is contained in:
parent
5e230edb85
commit
5fbe4c1876
@ -1624,11 +1624,12 @@ function item_store($arr,$allow_exec = false) {
|
||||
|
||||
// find the item we just created
|
||||
|
||||
$r = q("SELECT `id` FROM `item` WHERE `mid` = '%s' AND `uid` = %d ORDER BY `id` ASC ",
|
||||
$r = q("SELECT * FROM `item` WHERE `mid` = '%s' AND `uid` = %d ORDER BY `id` ASC ",
|
||||
$arr['mid'], // already dbesc'd
|
||||
intval($arr['uid'])
|
||||
);
|
||||
|
||||
|
||||
if($r && count($r)) {
|
||||
$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
|
||||
|
Reference in New Issue
Block a user