Skip to content
Snippets Groups Projects

[RTFixed] Dev#176783 task#189903

Merged Henri-Damien LAURENT requested to merge dev#176783_task#189903 into master
Compare and Show latest version
1 file
+ 3
2
Preferences
Compare changes
@@ -24,15 +24,16 @@ class Intonation_View_User_BorrowerLinks extends ZendAfi_View_Helper_FicheAbonne
public function User_BorrowerLinks(Class_User_Cards $cards) : array {
$debts_links='';
if ($this->_showDebts())
$debts_links = $this->_renderNumberOfDebts();
if (Class_Users::getIdentity()->displaySimpleAccountLinks())
return [ ...$this->_displaySimpleAccountLinks(), $debts_links];
return array_filter([ ...$this->_displaySimpleAccountLinks(), $debts_links]);
if ($cards->hasPagedLoans())
return [ ...$this->_displayLoansPagesAllLink(), $debts_links];
return array_filter([ ...$this->_displayLoansPagesAllLink(), $debts_links]);
$loans_count = $cards->getLoansCount();
$late_loans_count = $cards->getLateLoansCount();