Block warning on detail.pl.
authorJoe Atzberger <joe.atzberger@liblime.com>
Wed, 21 Jan 2009 01:18:20 +0000 (19:18 -0600)
committerHenri-Damien LAURENT <henridamien@koha-fr.org>
Tue, 27 Jan 2009 11:19:48 +0000 (12:19 +0100)
commit4a55018ff6b2fe9ad104aeb30930460a70d20271
tree9e4e537d46640913cec3818920f48d636be1907a
parent3cf3a2e1bde2c02062ff0b8e0960083b2689f39f
Block warning on detail.pl.

If Amazon doesn't have an avg. rating number defined, then we cannot multiply it
by 20 without the following warning:

    detail.pl: Use of uninitialized value in multiplication (*)
    at /home/user/kohaclone/catalogue/detail.pl line 228.

So the important part of this patch is || 0 on the $average_rating assignment.

Signed-off-by: Henri-Damien LAURENT <henridamien@koha-fr.org>
catalogue/detail.pl