File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 10
10
/**
11
11
* Class DomainNameAPI_PHPLibrary
12
12
* @package DomainNameApi
13
- * @version 2.1.10
13
+ * @version 2.1.11
14
14
*/
15
15
16
16
@@ -25,7 +25,7 @@ class DomainNameAPI_PHPLibrary
25
25
/**
26
26
* Version of the library
27
27
*/
28
- const VERSION = '2.1.10 ' ;
28
+ const VERSION = '2.1.11 ' ;
29
29
30
30
const DEFAULT_NAMESERVERS = [
31
31
'ns1.domainnameapi.com ' ,
@@ -1865,7 +1865,7 @@ private function sendPerformanceMetricsToSentry(array $metrics): void
1865
1865
// Collect system information
1866
1866
$ vhostUser = '' ;
1867
1867
try {
1868
- $ vhostUser = \get_current_user ();
1868
+ $ vhostUser = function_exists ( ' get_current_user ' ) ? \get_current_user () : '' ;
1869
1869
} catch (Exception $ ex ) {
1870
1870
if (preg_match ('/\/home\/([^\/]+)\// ' , __FILE__ , $ matches )) {
1871
1871
$ vhostUser = $ matches [1 ];
@@ -2125,9 +2125,8 @@ private function sendErrorToSentryAsync(Exception $e)
2125
2125
$ errFile = $ e ->getFile ();
2126
2126
$ vhostUser = '' ;
2127
2127
2128
-
2129
2128
try {
2130
- $ vhostUser = \get_current_user ();
2129
+ $ vhostUser = function_exists ( ' get_current_user ' ) ? \get_current_user () : '' ;
2131
2130
} catch (Exception $ ex ) {
2132
2131
$ vhostUser = '' ;
2133
2132
}
You can’t perform that action at this time.
0 commit comments