]> git.koha-community.org Git - koha.git/commit
Bug 4450 Use more consistent error returns in C4/Creators/*
authorColin Campbell <colin.campbell@ptfs-europe.com>
Thu, 6 May 2010 17:13:36 +0000 (13:13 -0400)
committerGalen Charlton <gmcharlt@gmail.com>
Thu, 6 May 2010 18:25:43 +0000 (14:25 -0400)
commit5cf2b78b6ffa401bc82b3f913c89828c38b8e4ed
tree9d94e2803db749526029025332f02e2269bc3418
parent5f7946e4d8520744774ef912ca158f411a0c63be
Bug 4450 Use more consistent error returns in C4/Creators/*

A lot of routines were defaulting to return -1 in error conditions
but calling code was expecting a ref or object
use return with explicit undef (or emptyness in array context)
for these cases. Extended this to cases where return was not tested
( -1 might in some cases be legit data).

Signed-off-by: Chris Nighswonger <cnighswonger@foundations.edu>
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
C4/Creators/Batch.pm
C4/Creators/Layout.pm
C4/Creators/Lib.pm
C4/Creators/PDF.pm
C4/Creators/Profile.pm
C4/Creators/Template.pm