BUG 9395 the code don't uses standard SOLVED

- I add standart to code
This commit is contained in:
Brayan Osmar Pereyra Suxo
2012-07-09 15:31:23 -04:00
parent 7db4587b90
commit 1856067042

View File

@@ -99,14 +99,26 @@ function expandNode(){
$rootFolder = "/";
if($_POST ['node']=="") $_POST ['node'] ="/";
if($_POST ['node']=="root") $_POST ['node'] ="/";
if ($_POST ['node']=="") {
$_POST ['node'] ="/";
}
if ($_POST ['node']=="root") {
$_POST ['node'] ="/";
}
if(!(isset($_POST['sendWhat']))) $_POST['sendWhat']="both";
if(isset($_POST['renderTree'])) $limit = 1000000;
if (!(isset($_POST['sendWhat']))) {
$_POST['sendWhat']="both";
}
if (isset($_POST['renderTree'])) {
$limit = 1000000;
}
$totalItems=0;
$totalFolders=0;
$totalDocuments=0;
if(($_POST['sendWhat']=="dirs")||($_POST['sendWhat']=="both")){
$folderListObj = $oPMFolder->getFolderList ( $_POST ['node'] != 'root' ? $_POST ['node'] == 'NA' ? "" : $_POST ['node'] : $rootFolder, $limit, $start );
//G::pr($folderListObj);