Fix: missing a return into clean_url function

This commit is contained in:
Laurent Destailleur 2012-06-15 11:24:09 +02:00
parent 44f31bf21c
commit 4f1d6d7328
2 changed files with 3 additions and 2 deletions

View File

@ -416,6 +416,7 @@ function clean_url($url,$http=1)
return $CleanUrl; return $CleanUrl;
} }
else return $url;
} }
/** /**

View File

@ -450,14 +450,14 @@ if (empty($reshook))
} }
} }
} }
// Remove file in doc form // Remove file in doc form
else if ($action == 'remove_file') else if ($action == 'remove_file')
{ {
if ($object->fetch($socid)) if ($object->fetch($socid))
{ {
require_once(DOL_DOCUMENT_ROOT."/core/lib/files.lib.php"); require_once(DOL_DOCUMENT_ROOT."/core/lib/files.lib.php");
$langs->load("other"); $langs->load("other");
$upload_dir = $conf->societe->dir_output; $upload_dir = $conf->societe->dir_output;
$file = $upload_dir . '/' . GETPOST('file'); $file = $upload_dir . '/' . GETPOST('file');