Skip to content

Commit

Permalink
ImportSourceRestApi: Fix strlen deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
raviks789 committed Oct 22, 2024
1 parent a6da978 commit d946b0d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions library/Director/Import/ImportSourceRestApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -273,11 +273,9 @@ protected static function addProxy(QuickForm $form)
),
]);

$passRequired = strlen($form->getSentOrObjectSetting('proxy_user')) > 0;

$form->addElement('storedPassword', 'proxy_pass', [
'label' => $form->translate('Proxy Password'),
'required' => $passRequired
'required' => strlen((string) $form->getSentOrObjectSetting('proxy_user')) > 0
]);
}
}
Expand Down

0 comments on commit d946b0d

Please sign in to comment.