Skip to content
Snippets Groups Projects
Unverified Commit b89ccf72 authored by DaveD's avatar DaveD Committed by GitHub
Browse files

Merge pull request #20447 from magnolia61/missing_image_fatal_error

#2369 - Change missing image fatal error to 404
parents 12c0f98e 1a662f35
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