allow orderby to be a string not just a char

This commit is contained in:
Uwe Steinmann 2019-06-24 11:51:21 +02:00
parent 0a4d7359b2
commit 6d751b5437

View File

@ -45,7 +45,7 @@ if (!is_object($folder)) {
UI::exitError(getMLText("folder_title", array("foldername" => getMLText("invalid_folder_id"))), getMLText("invalid_folder_id"));
}
if (isset($_GET["orderby"]) && strlen($_GET["orderby"])==1 ) {
if (isset($_GET["orderby"]) && strlen($_GET["orderby"])>0 ) {
$orderby=$_GET["orderby"];
} else $orderby=$settings->_sortFoldersDefault;