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));