Skip to content

Commit

Permalink
ImportSourceRestApi: Fix strlen deprecation (#2891)
Browse files Browse the repository at this point in the history
fix #2889
  • Loading branch information
lippserd authored Oct 23, 2024
2 parents a6da978 + d946b0d commit 0287012
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 0287012

Please sign in to comment.