]> 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)
committerGalen Charlton <galen.charlton@liblime.com>
Wed, 17 Dec 2008 20:48:21 +0000 (14:48 -0600)
commit77e545b0da40d369989c14903f098c8b05037bbb
tree4adb74fcce2da41ad122a242a6f4a2a2389560f1
parent9ae359d89a50630dd677034c2f9b38be65ad74ba
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