]> git.mxchange.org Git - friendica.git/blobdiff - include/items.php
Frio Bugfix: clear float at the end of comment-edit
[friendica.git] / include / items.php
index a4d8d8ef113a3d7c0c034372bde2060ed18cfba8..9b199aed3ba931956b2556ce89aca5ba77094c02 100644 (file)
@@ -359,6 +359,7 @@ function item_add_language_opt(&$arr) {
  * @brief Creates an unique guid out of a given uri
  *
  * @param string $uri uri of an item entry
+ * @param string $host (Optional) hostname for the GUID prefix
  * @return string unique guid
  */
 function uri_to_guid($uri, $host = "") {
@@ -1912,21 +1913,21 @@ function drop_item($id,$interactive = true) {
 
        $owner = $item['uid'];
 
-       $cid = 0;
+       $contact_id = 0;
 
        // check if logged in user is either the author or owner of this item
 
        if (is_array($_SESSION['remote'])) {
                foreach($_SESSION['remote'] as $visitor) {
                        if ($visitor['uid'] == $item['uid'] && $visitor['cid'] == $item['contact-id']) {
-                               $cid = $visitor['cid'];
+                               $contact_id = $visitor['cid'];
                                break;
                        }
                }
        }
 
 
-       if ((local_user() == $item['uid']) || ($cid) || (! $interactive)) {
+       if ((local_user() == $item['uid']) || ($contact_id) || (! $interactive)) {
 
                // Check if we should do HTML-based delete confirmation
                if ($_REQUEST['confirm']) {