1
0

fixing wrong sorted folders in shared.php

This commit is contained in:
Stefan Frech
2008-07-19 21:40:08 +00:00
committed by Jonas Kattendick
parent 84495fdd54
commit 2294c3cab2
2 changed files with 2 additions and 3 deletions

View File

@@ -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