aboutsummaryrefslogtreecommitdiffstats
path: root/mod/contacts.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-07-19 06:58:03 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-07-19 06:58:03 -0700
commit6695b4a203ab03941c8b3305a3e55cc02b85a5ac (patch)
tree47af4ee89d71b4c0584ae30da1883d5ae9e933a2 /mod/contacts.php
parentbbe53699f26bfa4e4d17da097fd8f2fc14da47dd (diff)
downloadvolse-hubzilla-6695b4a203ab03941c8b3305a3e55cc02b85a5ac.tar.gz
volse-hubzilla-6695b4a203ab03941c8b3305a3e55cc02b85a5ac.tar.bz2
volse-hubzilla-6695b4a203ab03941c8b3305a3e55cc02b85a5ac.zip
more bugs
Diffstat (limited to 'mod/contacts.php')
-rw-r--r--mod/contacts.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/mod/contacts.php b/mod/contacts.php
index 585ac1423..4f48c1c3d 100644
--- a/mod/contacts.php
+++ b/mod/contacts.php
@@ -119,7 +119,7 @@ function contacts_content(&$a) {
$p['id']);
}
}
- if($intval($contact_id))
+ if(intval($contact_id))
q("DELETE FROM `item` WHERE `contact-id` = %d LIMIT 1",
intval($contact_id)
);
@@ -184,7 +184,7 @@ function contacts_content(&$a) {
return $o;
}
-dbg(2);
+
if(($a->argc == 2) && ($a->argv[1] == 'all'))
$sql_extra = '';
else
@@ -212,7 +212,7 @@ dbg(2);
break;
}
- $r = q("SELECT * FROM `contact` WHERE `uid` = %d $sql_extra $sql_extra2 ",
+ $r = q("SELECT * FROM `contact` WHERE `uid` = %d AND `pending` = 0 $sql_extra $sql_extra2 ",
intval($_SESSION['uid']));
if(count($r)) {