Commit 73d3bebf authored by Pablo Rauzy's avatar Pablo Rauzy
Browse files

default to rowid sort

parent e919f5be
......@@ -62,7 +62,7 @@ function dirsize ($dir) {
$db = new SQLite3($config['users']);
$orders = array('n' => 'name', 'i' => 'rowid');
$order = (isset($_GET['ord']) ? $orders[$_GET['ord']] : 'name');
$order = (isset($_GET['ord']) ? $orders[$_GET['ord']] : 'rowid');
$res = $db->query("select rowid, name, email, password from users order by $order asc");
$users = array();
while ($usr = $res->fetchArray(SQLITE3_ASSOC)) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment