From 22028889fba4e487d132b4c42f8a22df5922a5c8 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Fri, 10 Dec 2010 19:33:53 +0000 Subject: =?UTF-8?q?=E2=80=A2=C2=A0avoided=20to=20execute=20SHOW=20VARIABLE?= =?UTF-8?q?S=20LIKE=20'character=5Fset=5Fdatabase'=20twice=20for=20setting?= =?UTF-8?q?=20shell=20variables=20for=20Bundle=20commands?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPDatabaseDocument.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Source') diff --git a/Source/SPDatabaseDocument.m b/Source/SPDatabaseDocument.m index 216a3004..c51a87e3 100644 --- a/Source/SPDatabaseDocument.m +++ b/Source/SPDatabaseDocument.m @@ -4852,8 +4852,7 @@ if ([self port]) [env setObject:[self port] forKey:@"SP_CURRENT_PORT"]; - if ([self databaseEncoding]) - [env setObject:[self databaseEncoding] forKey:@"SP_DATABASE_ENCODING"]; + [env setObject:([self databaseEncoding])?:@"" forKey:@"SP_DATABASE_ENCODING"]; } -- cgit v1.2.3