File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ public static function errorLog(
37
37
string $ title ,
38
38
string $ message ,
39
39
?string $ errorid = null ,
40
- ?Throwable $ error = null ,
40
+ ?\ Throwable $ error = null ,
41
41
mixed $ data = null ,
42
42
) {
43
43
if (!CONFIG ["site " ]["enable_verbose_error_log " ]) {
@@ -65,7 +65,7 @@ public static function errorLog(
65
65
}
66
66
67
67
// recursive on $t->getPrevious()
68
- private static function throwableToArray (Throwable $ t ): array
68
+ private static function throwableToArray (\ Throwable $ t ): array
69
69
{
70
70
$ output = [
71
71
"type " => gettype ($ t ),
Original file line number Diff line number Diff line change 24
24
break ;
25
25
}
26
26
}
27
- $ fn = strtolower ($ assoc_obj ->getOwner ()->getFullName ());
27
+ try {
28
+ $ fn = strtolower ($ assoc_obj ->getOwner ()->getFullName ());
29
+ } catch (Throwable $ e ) {
30
+ UnitySite::errorLog ("warning " , "failed to get owner name for PI group ' $ assoc' " , error: $ e );
31
+ $ fn = "" ;
32
+ }
28
33
if (strpos ($ fn , strtolower ($ search_query )) !== false ) {
29
34
if (!in_array ($ assoc , $ out )) {
30
35
array_push ($ out , $ assoc );
You can’t perform that action at this time.
0 commit comments