Skip to content

Commit

Permalink
Check for null
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoPino committed Nov 27, 2021
1 parent 9325503 commit dfee9db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Form/HydroponicsSettingsForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
$config = $this->config('strawberryfield.hydroponics_settings');

$active = $config->get('active') ? $config->get('active') : FALSE;
$time_to_expire = $config->get('time_to_expire') ? $config->get('time_to_expire') : 720;
$time_to_expire = $config->get('time_to_expire') !== null ? $config->get('time_to_expire') : 720;
$drush_path = $config->get('drush_path') ? $config->get('drush_path') : NULL;
$home_path = $config->get('home_path') ? $config->get('home_path') : NULL;
$enabled_queues = !empty($config->get('queues')) ? array_flip($config->get('queues')) : [];
Expand Down

0 comments on commit dfee9db

Please sign in to comment.