Skip to content

Commit b834aeb

Browse files
Jason Den Dulkbrendanheywood
Jason Den Dulk
authored andcommitted
Issue #97: refactor to account for unset CFG property.
1 parent 7069d42 commit b834aeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/helper.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public static function reset_bounce_count(\stdClass $resetuser): void {
146146
public static function get_bounce_config(): array {
147147
global $CFG;
148148
return [
149-
$CFG->handlebounces,
149+
$CFG->handlebounces ?? null,
150150
self::get_min_bounces(),
151151
self::get_bounce_ratio(),
152152
];

0 commit comments

Comments
 (0)