MDL-32323 fix installer warning

This commit is contained in:
Petr Skoda
2012-04-10 15:27:06 +02:00
parent 812013b1c1
commit 94a994b4fc
+1 -1
View File
@@ -141,7 +141,7 @@ class moodle_exception extends Exception {
$message = $module . '/' . $errorcode;
}
if (PHPUNIT_TEST and $debuginfo) {
if (defined('PHPUNIT_TEST') and PHPUNIT_TEST and $debuginfo) {
$message = "$message ($debuginfo)";
}