Skip to content
Snippets Groups Projects
Commit 1a662f35 authored by magnolia61's avatar magnolia61
Browse files

change missing image fatal error to 404

parent 03673b83
Branches
Tags
No related merge requests found
......@@ -52,11 +52,11 @@ class CRM_Contact_Page_ImageFile extends CRM_Core_Page {
'image/' . ($fileExtension == 'jpg' ? 'jpeg' : $fileExtension),
$this->ttl
);
CRM_Utils_System::civiExit();
}
else {
throw new CRM_Core_Exception(ts('Photo does not exist'));
header("HTTP/1.0 404 Not Found");
}
CRM_Utils_System::civiExit();
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment