Commit 8b6dc237 authored by Alexandre Morin's avatar Alexandre Morin
Browse files

Fix : Error if message reply not exist

parent fa981247
......@@ -20,6 +20,12 @@ Class Reset{
$docServer = $this->db->getDocServer($reply->docserver_id);
$fileName = $docServer->path_template. DIRECTORY_SEPARATOR . $dir . $reply->filename;
if (!file_exists($fileName)) {
$_SESSION['error'] = _ERROR_REPLY_NOT_EXIST . $resId;
return;
}
$xml = simplexml_load_file($fileName);
if (strpos($xml->ReplyCode, '000') !== false) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment