Skip to content

Commit da5863a

Browse files
fix truthy statement
1 parent 09df9d8 commit da5863a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

ProcessMaker/Console/Commands/EvaluateCaseRetention.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class EvaluateCaseRetention extends Command
2828
public function handle()
2929
{
3030
// Only run if case retention policy is enabled
31-
$enabled = getenv('CASE_RETENTION_POLICY_ENABLED');
31+
$enabled = env('CASE_RETENTION_POLICY_ENABLED', false);
3232
if (!$enabled) {
3333
$this->info('Case retention policy is disabled');
3434
$this->error('Skipping case retention evaluation');

ProcessMaker/Jobs/EvaluateProcessRetentionJob.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function __construct(public int $processId)
2727
public function handle(): void
2828
{
2929
// Only run if case retention policy is enabled
30-
$enabled = getenv('CASE_RETENTION_POLICY_ENABLED');
30+
$enabled = env('CASE_RETENTION_POLICY_ENABLED', false);
3131
if (!$enabled) {
3232
return;
3333
}

0 commit comments

Comments
 (0)