]> git.mxchange.org Git - friendica.git/commitdiff
The network widget is now ordered by network name
authorMichael Vogel <icarus@dabo.de>
Sun, 15 Jun 2014 16:51:46 +0000 (18:51 +0200)
committerMichael Vogel <icarus@dabo.de>
Sun, 15 Jun 2014 16:51:46 +0000 (18:51 +0200)
include/contact_widgets.php

index 9401adccad88f76c4859624b20880af7e5c35272..6d9b097d693e81e7656dcdd90369d7d84fadf6c1 100644 (file)
@@ -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())
        );