fixing wrong sorted folders in shared.php
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user