This commit is contained in:
Roly Rudy Gutierrez Pinto
2015-01-30 14:41:26 -04:00
parent bcae063ede
commit 6c8d06059d
3 changed files with 13 additions and 11 deletions

View File

@@ -200,8 +200,10 @@ if (isset($_FILES["PROCESS_FILENAME"]) &&
try {
if ($createMode === "overwrite") {
$process = Process::getByProTitle($data["PRO_TITLE"]);
$oProcess = new Process();
$oProcess->remove($process["PRO_UID"]);
if ($process !== null) {
$oProcess = new Process();
$oProcess->remove($process["PRO_UID"]);
}
}
if ($createMode === "rename") {
$data["PRO_TITLE"] = Process::getNextTitle($data["PRO_TITLE"]);