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(
3737 string $ title ,
3838 string $ message ,
3939 ?string $ errorid = null ,
40- ?Throwable $ error = null ,
40+ ?\ Throwable $ error = null ,
4141 mixed $ data = null ,
4242 ) {
4343 if (!CONFIG ["site " ]["enable_verbose_error_log " ]) {
@@ -65,7 +65,7 @@ public static function errorLog(
6565 }
6666
6767 // recursive on $t->getPrevious()
68- private static function throwableToArray (Throwable $ t ): array
68+ private static function throwableToArray (\ Throwable $ t ): array
6969 {
7070 $ output = [
7171 "type " => gettype ($ t ),
Original file line number Diff line number Diff line change 2424 break ;
2525 }
2626 }
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+ }
2833 if (strpos ($ fn , strtolower ($ search_query )) !== false ) {
2934 if (!in_array ($ assoc , $ out )) {
3035 array_push ($ out , $ assoc );
You can’t perform that action at this time.
0 commit comments