From ae1fad5de7aa8b42b9e7e0719502bf914228b1bf Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 25 Nov 2022 18:44:33 +0000 Subject: basically every incoming item should have a uuid by now --- include/items.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/items.php') diff --git a/include/items.php b/include/items.php index b414928fd..752251a7e 100644 --- a/include/items.php +++ b/include/items.php @@ -1848,8 +1848,8 @@ function item_store($arr, $allow_exec = false, $deliver = true) { if($parent_deleted) $arr['item_deleted'] = 1; - $r = q("SELECT id FROM item WHERE mid = '%s' AND uid = %d and revision = %d LIMIT 1", - dbesc($arr['mid']), + $r = q("SELECT id FROM item WHERE uuid = '%s' AND uid = %d and revision = %d LIMIT 1", + dbesc($arr['uuid']), intval($arr['uid']), intval($arr['revision']) ); -- cgit v1.2.3