We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f7b8ee commit 67447baCopy full SHA for 67447ba
src/templates/EventLog/View.phtml
@@ -28,9 +28,13 @@ $object_user_id = (
28
$object instanceof Event ? $object->getUserId() : null
29
);
30
31
-$object_user = (
32
- !is_null( $object_user_id ) ? new User( $object_user_id ) : null
33
-);
+try {
+ $object_user = (
+ !is_null( $object_user_id ) ? new User( $object_user_id ) : null
34
+ );
35
+} catch (UserNotFoundException $e) {
36
+ $object_user = null;
37
+}
38
39
if ( !$object instanceof Event ) {
40
$title = 'Event Not Found';
0 commit comments