Skip to content

Commit

Permalink
change missing image fatal error to 404
Browse files Browse the repository at this point in the history
  • Loading branch information
magnolia61 committed May 31, 2021
1 parent 03673b8 commit 255993e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CRM/Contact/Page/ImageFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit 255993e

Please sign in to comment.