--- /tmp/dsg/dolibarr/htdocs/ecm/ajax/github_ecmdatabase.php +++ /tmp/dsg/dolibarr/htdocs/ecm/ajax/client_ecmdatabase.php @@ -28,7 +28,7 @@ require '../../main.inc.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php'; -$action = GETPOST('action', 'aZ09'); +$action = GETPOST('action', 'alpha'); $element = GETPOST('element', 'alpha'); /* @@ -114,11 +114,15 @@ //print "Yes with id ".$parentdirisindatabase."
\n"; $fk_parent = $parentdirisindatabase; //break; // We found parent, we can stop the while loop - } else { + } + else + { dol_syslog("No"); //print "No
\n"; } - } else { + } + else + { dol_syslog("Parent is root"); $fk_parent = 0; // Parent is root } @@ -144,10 +148,13 @@ $sqltree[] = $newdirsql; // We complete fulltree for following loops //var_dump($sqltree); $adirwascreated = 1; - } else { + } + else + { dol_syslog("Failed to create directory ".$ecmdirtmp->label, LOG_ERR); } - } else { + } + else { $txt = "Parent of ".$dirdesc['fullname']." not found"; dol_syslog($txt); //print $txt."
\n";