]> 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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 16 Jan 2019 08:19:22 +0000 (09:19 +0100)
commita6af3f631722f15396801d60cd5873f1e8c1a9fb
tree335e6c8f01e6cdaf75cd432e38f8af7139ce9fd5
parentfc39a7a80106b6ee92122cce1969ade99be9342a
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>
(cherry picked from commit 482b323da1e18324941963359b9a1bd96f297c44)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit fee85191b0be2690cbfada45f4eba54ef0e75c35)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit e1050653fba9a2eb0af5926b8cc9326ca721f939)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
admin/edi_accounts.pl