Skip to content

Commit 0909ba6

Browse files
committed
Fixed logic reversed on enable_person_reporting setting.
1 parent ab2d435 commit 0909ba6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ public function buildPHPConfig(): array
309309
$config[$setting] = Settings::toBoolean($value);
310310
}
311311

312-
if ($config['enable_person_reporting'] && !empty($config['person_fn']) && !empty($config['person'])) {
312+
if ($config['enable_person_reporting'] && empty($config['person_fn']) && empty($config['person'])) {
313313
$config['person_fn'] = Settings::getPersonFunction(...);
314314
}
315315

0 commit comments

Comments
 (0)