Bug 7330 - System preferences editor generates errors in the log with each search
authorOwen Leonard <oleonard@myacpl.org>
Wed, 7 Dec 2011 15:50:06 +0000 (10:50 -0500)
committerPaul Poulain <paul.poulain@biblibre.com>
Thu, 15 Dec 2011 16:24:44 +0000 (17:24 +0100)
commit081790295661662f3d1f22673b1c44eee030fddb
treeb83aec376ae7b6f8fcee4f9d6155276f3c781723
parent1f5f4981c098a7aa2a4323107dd98379a52a4c6e
Bug 7330 - System preferences editor generates errors in the log with each search

Adding a check for an empty value in a couple of places
which seem to always get one.

As far as I can tell these places in the script are looping
over ALL the data in the pref files, and sometimes an empty
value comes through. I wonder if this is because of a minor
syntax error in the pref file?

My correction is a stab in the dark since I haven't determined
where the empty value is actually coming from. This change
quiets the errors in the log and doesn't seem to affect
preference search results.

Signed-off-by: Liz Rea <wizzyrea@gmail.com>
No more messages in the logs. Yay!

Ran unit tests on this (t, xt/author, xt, t/db_dependent)- nothing out of the ordinary in any.

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
admin/preferences.pl