From 4106f2b240977c68c74743c72c5df3d9a9176b5c Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 23 May 2024 13:49:16 +0100 Subject: [PATCH] Bug 26176: (follow-up) Use suggested patturn in update --- installer/data/mysql/atomicupdate/bug_26176.pl | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/installer/data/mysql/atomicupdate/bug_26176.pl b/installer/data/mysql/atomicupdate/bug_26176.pl index cc7fb4e5a7b..305e07e200f 100755 --- a/installer/data/mysql/atomicupdate/bug_26176.pl +++ b/installer/data/mysql/atomicupdate/bug_26176.pl @@ -13,21 +13,19 @@ return { UPDATE systempreferences SET variable = "StaffLoginRestrictLibraryByIP" WHERE variable = "AutoLocation" } - ); - - say_success( $out, "Renamed system preference 'AutoLocation' to 'StaffLoginRestrictLibraryByIP'" ); + ) == 1 + && say_success( $out, "Renamed system preference 'AutoLocation' to 'StaffLoginRestrictLibraryByIP'" ); $dbh->do( q{ UPDATE systempreferences SET variable = "StaffLoginRestrictLibraryByIP" WHERE variable = "StaffLoginLibraryBasedOnIP" } - ); - - say_success( + ) == 1 + && say_success( $out, "Renamed system preference 'StaffLoginLibraryBasedOnIP' to 'StaffLoginRestrictLibraryByIP'" - ); + ); }, }; -- 2.45.1