Reformatted stuff, improved query
This commit is contained in:
parent
be1db7bdb0
commit
ea18d1829f
|
@ -90,7 +90,7 @@ function networks_widget($baseurl,$selected = '') {
|
|||
|
||||
$extra_sql = unavailable_networks();
|
||||
|
||||
$r = q("SELECT DISTINCT(`network`) FROM `contact` WHERE `uid` = %d AND NOT `self` $extra_sql ORDER BY `network`",
|
||||
$r = q("SELECT DISTINCT(`network`) FROM `contact` WHERE `uid` = %d AND `network` != '' $extra_sql ORDER BY `network`",
|
||||
intval(local_user())
|
||||
);
|
||||
|
||||
|
|
|
@ -773,8 +773,7 @@ function network_content(App $a, $update = 0) {
|
|||
intval(local_user())
|
||||
);
|
||||
}
|
||||
} else {
|
||||
if ($update_unseen) {
|
||||
} elseif ($update_unseen) {
|
||||
|
||||
$unseen = q("SELECT `id` FROM `item` ".$update_unseen. " LIMIT 1");
|
||||
|
||||
|
@ -782,7 +781,6 @@ function network_content(App $a, $update = 0) {
|
|||
$r = q("UPDATE `item` SET `unseen` = 0 $update_unseen");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Set this so that the conversation function can find out contact info for our wall-wall items
|
||||
$a->page_contact = $a->contact;
|
||||
|
|
Loading…
Reference in a new issue