diff options
author | Arun Persaud <arun@nubati.net> | 2008-12-02 23:29:29 -0800 |
---|---|---|
committer | Arun Persaud <arun@nubati.net> | 2008-12-02 23:29:29 -0800 |
commit | b568d14fe83e919b41452d8ae5b57a7dedc671cf (patch) | |
tree | 100d5d90836776e82dcdd31be91e2c95a48bfd70 /include/db.php | |
parent | 53e8cff40ccebaa711fa8aab6dc9af1eb4e5c3a1 (diff) | |
download | e-DoKo-b568d14fe83e919b41452d8ae5b57a7dedc671cf.tar.gz e-DoKo-b568d14fe83e919b41452d8ae5b57a7dedc671cf.tar.bz2 e-DoKo-b568d14fe83e919b41452d8ae5b57a7dedc671cf.zip |
NEW FEATURE: new sorting algorithm
you can now sort your hand "low to high" and change your default using the setting dialog
Diffstat (limited to 'include/db.php')
-rw-r--r-- | include/db.php | 8 |
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; } |