mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
mnet MDL-21582 fix empty mnet debug variable that display a notice on the peer services page
This commit is contained in:
parent
fb79269bef
commit
c044e281b5
@ -524,7 +524,7 @@ function mnet_get_app_jumppath ($applicationid) {
|
||||
|
||||
function mnet_debug($debugdata, $debuglevel=1) {
|
||||
global $CFG;
|
||||
if ($CFG->mnet_rpcdebug < $debuglevel) {
|
||||
if (empty($CFG->mnet_rpcdebug) || $CFG->mnet_rpcdebug < $debuglevel) {
|
||||
return;
|
||||
}
|
||||
if (is_object($debugdata)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user