]> git.koha-community.org Git - koha.git/commit
Block warning on detail.pl.
authorJoe Atzberger <joe.atzberger@liblime.com>
Wed, 21 Jan 2009 01:18:20 +0000 (19:18 -0600)
committerGalen Charlton <galen.charlton@liblime.com>
Fri, 24 Apr 2009 14:02:34 +0000 (09:02 -0500)
commit28a7b360be18ff4ce5e6d45d918a7dfc8c6b9416
treed837d38246b9203604fb14cef436db774ac72e59
parentb15be226208065463e92b2e892b8ec8b39c89191
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.

[RM note: applying for whitespace cleanup]

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