diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-07-20 05:21:19 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-07-20 05:21:19 -0700 |
commit | 466267fbb5b5cc466196e40b6a8fe96f25c57e2f (patch) | |
tree | 8fc00033648bd7716fdeac8eaddca054b2fbf1be /mod/contacts.php | |
parent | ba8da761e669b22e16e1075e0e1e79d8b458af3e (diff) | |
download | volse-hubzilla-466267fbb5b5cc466196e40b6a8fe96f25c57e2f.tar.gz volse-hubzilla-466267fbb5b5cc466196e40b6a8fe96f25c57e2f.tar.bz2 volse-hubzilla-466267fbb5b5cc466196e40b6a8fe96f25c57e2f.zip |
lotsoflittlestuff
Diffstat (limited to 'mod/contacts.php')
-rw-r--r-- | mod/contacts.php | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/mod/contacts.php b/mod/contacts.php index 4f48c1c3d..dcbadd2ba 100644 --- a/mod/contacts.php +++ b/mod/contacts.php @@ -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) |