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 Jul 17, 2024
1 parent 428a49f commit 463a7dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion library/Director/Import/ImportSourceRestApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,8 @@ protected static function addProxy(QuickForm $form)
),
]);

$passRequired = strlen($form->getSentOrObjectSetting('proxy_user')) > 0;
$proxyUser = $form->getSentOrObjectSetting('proxy_user');
$passRequired = $proxyUser !== null && strlen($proxyUser) > 0;

$form->addElement('storedPassword', 'proxy_pass', [
'label' => $form->translate('Proxy Password'),
Expand Down

0 comments on commit 463a7dd

Please sign in to comment.