]> git.mxchange.org Git - friendica.git/commitdiff
fix undeclared $uid variables in Item::insert()
authorrabuzarus <rabuzarus@t-online.de>
Mon, 12 Feb 2018 15:56:52 +0000 (16:56 +0100)
committerrabuzarus <rabuzarus@t-online.de>
Mon, 12 Feb 2018 15:56:52 +0000 (16:56 +0100)
src/Model/Item.php

index 400bc549b16d60b0cd856454ffb48b822b799b65..40c8980243f6d9915700971ce59617cf3acf533c 100644 (file)
@@ -263,8 +263,7 @@ class Item extends BaseObject
                }
 
                $arr['guid'] = notags(trim(defaults($arr, 'guid', get_guid(32, $guid_prefix))));
-               /// @todo Declare $uid variable - Rabuzarus - 2018-02-12.
-               $arr['uri'] = notags(trim(defaults($arr, 'uri', item_new_uri($a->get_hostname(), $uid, $arr['guid']))));
+               $arr['uri'] = notags(trim(defaults($arr, 'uri', item_new_uri($a->get_hostname(), $arr['uid'], $arr['guid']))));
 
                // Store conversation data
                $arr = Conversation::insert($arr);