Skip to content

Commit e6117af

Browse files
authored
Merge pull request #59 from rfay/20210614_xhprof_error
Make sure xhprof_error doesn't get multiple definition: "Cannot redeclare xhprof_error() (previously declared"
2 parents 8a084ee + cf21149 commit e6117af

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

xhprof_lib/utils/xhprof_lib.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@
1919
// Do not add any display specific code here.
2020
//
2121

22-
function xhprof_error($message) {
23-
error_log($message);
22+
if (!function_exists('xhprof_error')) {
23+
function xhprof_error($message) {
24+
error_log($message);
25+
}
2426
}
2527

2628
/*

0 commit comments

Comments
 (0)