[Koha-patches] [PATCH] followup to Calendar overhaul

Galen Charlton galen.charlton at liblime.com
Thu Oct 23 19:34:05 CEST 2008


correct an errant "SELECT FROM" that slipped in
---
 C4/Calendar.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/C4/Calendar.pm b/C4/Calendar.pm
index 65ad729..657d4b7 100644
--- a/C4/Calendar.pm
+++ b/C4/Calendar.pm
@@ -353,7 +353,7 @@ sub delete_holiday {
         my $id = $isSingleHoliday->fetchrow;
         $isSingleHoliday->finish; # Close the last query
 
-        my $deleteHoliday = $dbh->prepare("SELECT FROM special_holidays WHERE id = ?");
+        my $deleteHoliday = $dbh->prepare("DELETE FROM special_holidays WHERE id = ?");
         $deleteHoliday->execute($id);
         delete($self->{'single_holidays'}->{"$options{year}/$options{month}/$options{day}"});
     } else {
-- 
1.5.5.GIT




More information about the Koha-patches mailing list