From 3205740f8679f3408a3d5e4246d943b74db80f47 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Mon, 13 Dec 2010 09:13:35 +0000 Subject: =?UTF-8?q?=E2=80=A2=20HTML=20output=20window=20-=20a=20BASH=20scr?= =?UTF-8?q?ipt=20called=20via=20window.system.run()=20inherits=20the=20cur?= =?UTF-8?q?rent=20shell=20vars=20and=20the=20associated=20SP=5FPROCESS=5FI?= =?UTF-8?q?D=20if=20set=20to=20make=20it=20easier=20to=20run=20sequelpro?= =?UTF-8?q?=20URL=20scheme=20commands=20from=20JavaScript=20via=20BASH=20-?= =?UTF-8?q?=20improved=20error=20handling?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPDatabaseDocument.m | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Source/SPDatabaseDocument.m') diff --git a/Source/SPDatabaseDocument.m b/Source/SPDatabaseDocument.m index 144f0710..7cea8eab 100644 --- a/Source/SPDatabaseDocument.m +++ b/Source/SPDatabaseDocument.m @@ -4816,6 +4816,9 @@ - (NSDictionary*)shellVariables { + + if(!_isConnected) return [NSDictionary dictionary]; + NSMutableDictionary *env = [NSMutableDictionary dictionary]; if (tablesListInstance) { -- cgit v1.2.3