aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPUserMO.m
diff options
context:
space:
mode:
authormltownsend <mltownsend@gmail.com>2010-02-10 05:54:30 +0000
committermltownsend <mltownsend@gmail.com>2010-02-10 05:54:30 +0000
commit25f4268b73d93af0eb30a38214ced39d034250ff (patch)
treef06a30af32ac216362a7816a653bc6735f5e36af /Source/SPUserMO.m
parent13805614e6ed2131827bfa6c668b50a1b30da1e5 (diff)
downloadsequelpro-25f4268b73d93af0eb30a38214ced39d034250ff.tar.gz
sequelpro-25f4268b73d93af0eb30a38214ced39d034250ff.tar.bz2
sequelpro-25f4268b73d93af0eb30a38214ced39d034250ff.zip
Made it so that the host can't be null. Goes to '%' by default.
Diffstat (limited to 'Source/SPUserMO.m')
-rw-r--r--Source/SPUserMO.m14
1 files changed, 13 insertions, 1 deletions
diff --git a/Source/SPUserMO.m b/Source/SPUserMO.m
index 061f4658..5c5bd40e 100644
--- a/Source/SPUserMO.m
+++ b/Source/SPUserMO.m
@@ -41,7 +41,19 @@
if ([self valueForKey:@"parent"] == nil)
[self setValue:value forKey:@"user"];
else
- [self setValue:value forKey:@"host"];
+ {
+ if (value == nil)
+ {
+ [self setValue:@"%" forKey:@"host"];
+ }
+ else
+ {
+ [self setValue:value forKey:@"host"];
+ }
+
+
+ }
+
}
- (void)addChildrenObject:(NSManagedObject *)value