From 2294c3cab2447a59d2c9fba0d64d6088c0447fd6 Mon Sep 17 00:00:00 2001 From: Stefan Frech Date: Sat, 19 Jul 2008 21:40:08 +0000 Subject: [PATCH] fixing wrong sorted folders in shared.php --- folders.php | 2 +- shared.php | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/folders.php b/folders.php index c12b880..236c1f0 100644 --- a/folders.php +++ b/folders.php @@ -71,7 +71,7 @@ class folder { } # get all shared folders for the given user - $query = "SELECT id, childof, name, public FROM folder WHERE public='1' AND deleted!='1'AND user='$this->foreign_username' ORDER BY 'name'"; + $query = "SELECT id, childof, name, public FROM folder WHERE public='1' AND deleted!='1' AND user='$this->foreign_username' ORDER BY name"; if ($mysql->query ($query)) { # make two arrays: # 1) $children containing arrays with children. the keys of these arrays are the id's of the parents diff --git a/shared.php b/shared.php index 056342b..7d352af 100644 --- a/shared.php +++ b/shared.php @@ -74,7 +74,6 @@ if (isset ($_GET['user']) && check_username ($user)) {
escape ($user), $mysql->escape ($folderid));