From dd685a4afcf1ef6171528a4e418d1b308b81c0c6 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sun, 15 Jun 2014 18:51:46 +0200 Subject: [PATCH] The network widget is now ordered by network name --- include/contact_widgets.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/contact_widgets.php b/include/contact_widgets.php index 9401adccad..6d9b097d69 100644 --- a/include/contact_widgets.php +++ b/include/contact_widgets.php @@ -49,8 +49,8 @@ function networks_widget($baseurl,$selected = '') { if(! feature_enabled(local_user(),'networks')) return ''; - - $r = q("select distinct(network) from contact where uid = %d and self = 0", + + $r = q("SELECT DISTINCT(`network`) FROM `contact` WHERE `uid` = %d AND `self` = 0 ORDER BY `network`", intval(local_user()) ); -- 2.39.5