MDL-82540 core: Use an empty check for $CFG->debugdisplay

This commit is contained in:
Jun Pataleta 2024-07-19 16:24:49 +08:00
parent 554a790bf0
commit 9a8cc133d5
No known key found for this signature in database
GPG Key ID: F83510526D99E2C7

View File

@ -71,7 +71,7 @@ function get_whoops(): ?\Whoops\Run {
return null;
}
if (!$CFG->debugdisplay) {
if (empty($CFG->debugdisplay)) {
return null;
}