aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPUserMO.m
diff options
context:
space:
mode:
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