diff --git a/CRM/Contact/Page/ImageFile.php b/CRM/Contact/Page/ImageFile.php index da437de7d524..cc9a3a367fcf 100644 --- a/CRM/Contact/Page/ImageFile.php +++ b/CRM/Contact/Page/ImageFile.php @@ -55,7 +55,8 @@ public function run() { CRM_Utils_System::civiExit(); } else { - throw new CRM_Core_Exception(ts('Photo does not exist')); + header("HTTP/1.0 404 Not Found"); + return; } }