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

View File

@@ -74,7 +74,6 @@ if (isset ($_GET['user']) && check_username ($user)) {
<div class="bookmarks" style="height: <?php echo $table_height; ?>;">
<?php
$order = set_get_order ();
require_once (ABSOLUTE_PATH . "bookmarks.php");
$query = sprintf ("SELECT title, url, description, UNIX_TIMESTAMP(date) AS timestamp, id, favicon
@@ -83,7 +82,7 @@ if (isset ($_GET['user']) && check_username ($user)) {
AND childof='%d'
AND deleted!='1'
AND public='1'
ORDER BY $order[1]",
ORDER BY title",
$mysql->escape ($user),
$mysql->escape ($folderid));