From e2fd348f7f53d4a9a69bc26062c466aa6b79c370 Mon Sep 17 00:00:00 2001 From: Henri-Damien LAURENT Date: Wed, 6 Apr 2011 16:51:00 +0200 Subject: [PATCH] Bug 6017 : MT3157 : editing an attribute lead to Error500 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Editing an extended attribute in the extended attribute tab would lead to an Error500 This patch adds some checks for values before UPDATE in SQLHelper.pm And Adds some checks also befaore calling ModMember in members/memberentry Signed-off-by: Stéphane Delaune Signed-off-by: Chris Cormack --- C4/SQLHelper.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/C4/SQLHelper.pm b/C4/SQLHelper.pm index 060b78f46e..a15beb86b6 100644 --- a/C4/SQLHelper.pm +++ b/C4/SQLHelper.pm @@ -164,6 +164,7 @@ sub UpdateInTable{ my @ids=@$data{@field_ids}; my $dbh = C4::Context->dbh; my ($keys,$values)=_filter_hash($tablename,$data,0); + return unless ($keys); my $query = qq{ UPDATE $tablename SET }.join(",",@$keys).qq{ -- 2.39.2