]> git.mxchange.org Git - friendica.git/blobdiff - mod/contacts.php
group select on network page
[friendica.git] / mod / contacts.php
index 4f48c1c3d5f4f205589d40eb80f443101ce2fac6..dcbadd2bac5def3ddc6f80616ff10da2c5092333 100644 (file)
@@ -88,11 +88,11 @@ function contacts_content(&$a) {
                }
 
 
-               $photo = str_replace('-4.jpg', '' , $r[0]['photo']);
-               $photos = q("SELECT `id` FROM `photo` WHERE `resource-id` = '%s' AND `uid` = %d",
-                               dbesc($photo),
-                               intval($_SESSION['uid'])
-               );
+//             $photo = str_replace('-4.jpg', '' , $r[0]['photo']);
+//             $photos = q("SELECT `id` FROM `photo` WHERE `resource-id` = '%s' AND `uid` = %d",
+//                             dbesc($photo),
+//                             intval($_SESSION['uid'])
+//             );
        
                if($cmd == 'block') {
                        $blocked = (($orig_record[0]['blocked']) ? 0 : 1);
@@ -113,12 +113,14 @@ function contacts_content(&$a) {
                        $r = q("DELETE FROM `contact` WHERE `id` = %d AND `uid` = %d LIMIT 1",
                                intval($contact_id),
                                intval($_SESSION['uid']));
-                       if(count($photos)) {
-                               foreach($photos as $p) {
-                                       q("DELETE FROM `photos` WHERE `id` = %d LIMIT 1",
-                                               $p['id']);
-                               }
-                       }
+
+//                     if(count($photos)) {
+//                             foreach($photos as $p) {
+//                                     q("DELETE FROM `photos` WHERE `id` = %d LIMIT 1",
+//                                             $p['id']);
+//                             }
+//                     }
+
                        if(intval($contact_id))
                                q("DELETE FROM `item` WHERE `contact-id` = %d LIMIT 1",
                                        intval($contact_id)