]> git.koha-community.org Git - koha.git/commit
Bug 21605: (follow-up) Simple ternary boolean to number conversion
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Thu, 13 Dec 2018 13:59:38 +0000 (14:59 +0100)
committerNick Clemens <nick@bywatersolutions.com>
Tue, 8 Jan 2019 13:58:10 +0000 (13:58 +0000)
commit482b323da1e18324941963359b9a1bd96f297c44
tree77b56f7a6c9091f9de5036d674d186ba619a1464
parentc9c3fc4368ee9d37a45c48167d25d5cee511898b
Bug 21605: (follow-up) Simple ternary boolean to number conversion

Imo it is much easier to do just "$a ? 1 : 0" than testing defined($a) etc.
in the additional loop.
Less code, more readable?

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
admin/edi_accounts.pl