Eliminates fake warnings "Something is wrong on line 530".
---
C4/Installer.pm | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/C4/Installer.pm b/C4/Installer.pm
index 80ef627..4831969 100644
--- a/C4/Installer.pm
+++ b/C4/Installer.pm
@@ -526,8 +526,10 @@ sub load_sql {
# report the import a failure although it really succeded -fbcit
}
# errors thrown while loading installer data should be logged
- warn "C4::Installer::load_sql returned the following errors while
attempting to load $filename:\n";
- warn $error;
+ if($error) {
+ warn "C4::Installer::load_sql returned the following errors while
attempting to load $filename:\n";
+ warn $error;
+ }
return $error;
}
--
1.6.0.6
_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/