summaryrefslogtreecommitdiffstats
path: root/include/db.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/db.php')
-rw-r--r--include/db.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/db.php b/include/db.php
index 514bde2..de549a5 100644
--- a/include/db.php
+++ b/include/db.php
@@ -729,6 +729,14 @@ function DB_get_PREF($myid)
else
$PREF['autosetup']='no';
+ /* Sorting */
+ $r = DB_query_array("SELECT value FROM User_Prefs".
+ " WHERE user_id='$myid' AND pref_key='sorting'" );
+ if($r)
+ $PREF['sorting'] = $r[0];
+ else
+ $PREF['sorting']='high-low';
+
return $PREF;
}