mnet MDL-21582 fix empty mnet debug variable that display a notice on the peer services page

This commit is contained in:
jerome mouneyrac 2010-02-11 08:20:27 +00:00
parent fb79269bef
commit c044e281b5

View File

@ -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)) {