getFolder() can be forced to treas $id as a name

This commit is contained in:
Uwe Steinmann 2014-06-03 08:49:01 +02:00
parent 858552b743
commit 010179fc98

View File

@ -149,7 +149,8 @@ function getLockedDocuments() { /* {{{ */
function getFolder($id) { /* {{{ */
global $app, $dms, $userobj;
if(is_numeric($id))
$forcebyname = $app->request()->get('forcebyname');
if(is_numeric($id) && empty($forcebyname))
$folder = $dms->getFolder($id);
else {
$parentid = $app->request()->get('parentid');