]> git.koha-community.org Git - koha.git/commit
bug 2860: allow setting of a syspref value to '0'
authorGalen Charlton <galen.charlton@liblime.com>
Wed, 17 Dec 2008 15:53:39 +0000 (09:53 -0600)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Tue, 26 May 2009 19:14:54 +0000 (21:14 +0200)
commitc14863cf44f5a7c29fda25bb1557f5546e9c6432
treecffb5ae09a49b01a6ed8459b9ddbd01549c5d572
parenta1088bb1268eda87403aef03a6a448f3bc141e6c
bug 2860: allow setting of a syspref value to '0'

Fixed invalid test for the existence of CGI parameter; if it
is possible that the value of a parameter can be 0, it is
not sufficient to test like this:

if ($input->param('foo')) { ...

since the test will fail for *any* value that evaluates
to Perl false.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
admin/systempreferences.pl