aboutsummaryrefslogtreecommitdiffstats
path: root/mod/contacts.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-07-19 05:24:22 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-07-19 05:24:22 -0700
commitbbe53699f26bfa4e4d17da097fd8f2fc14da47dd (patch)
tree70888d850bc8f839532b087584eb41f0a9bbf0a8 /mod/contacts.php
parent9b0584e59338f0b75c6b8a9a1b5def33da5de5f6 (diff)
downloadvolse-hubzilla-bbe53699f26bfa4e4d17da097fd8f2fc14da47dd.tar.gz
volse-hubzilla-bbe53699f26bfa4e4d17da097fd8f2fc14da47dd.tar.bz2
volse-hubzilla-bbe53699f26bfa4e4d17da097fd8f2fc14da47dd.zip
bug fixes
Diffstat (limited to 'mod/contacts.php')
-rw-r--r--mod/contacts.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/mod/contacts.php b/mod/contacts.php
index 999617aa1..585ac1423 100644
--- a/mod/contacts.php
+++ b/mod/contacts.php
@@ -184,7 +184,7 @@ function contacts_content(&$a) {
return $o;
}
-
+dbg(2);
if(($a->argc == 2) && ($a->argv[1] == 'all'))
$sql_extra = '';
else
@@ -198,21 +198,21 @@ function contacts_content(&$a) {
switch($sort_type) {
case DIRECTION_BOTH :
- $sql_extra = " AND `dfrn-id` != '' AND `issued-id` != '' ";
+ $sql_extra2 = " AND `dfrn-id` != '' AND `issued-id` != '' ";
break;
case DIRECTION_IN :
- $sql_extra = " AND `dfrn-id` = '' AND `issued-id` != '' ";
+ $sql_extra2 = " AND `dfrn-id` = '' AND `issued-id` != '' ";
break;
case DIRECTION_OUT :
- $sql_extra = " AND `dfrn-id` != '' AND `issued-id` = '' ";
+ $sql_extra2 = " AND `dfrn-id` != '' AND `issued-id` = '' ";
break;
case DIRECTION_ANY :
default:
- $sql_extra = '';
+ $sql_extra2 = '';
break;
}
- $r = q("SELECT * FROM `contact` WHERE `uid` = %d $sql_extra",
+ $r = q("SELECT * FROM `contact` WHERE `uid` = %d $sql_extra $sql_extra2 ",
intval($_SESSION['uid']));
if(count($r)) {