Ver Fonte

160818

modify arr2string return nil when arr is empty.
Ray Zhang há 9 anos atrás
pai
commit
b025733bf9
1 ficheiros alterados com 2 adições e 1 exclusões
  1. 2 1
      RedAnt ERP Mobile/common/RAUtils.m

+ 2 - 1
RedAnt ERP Mobile/common/RAUtils.m

@@ -1106,7 +1106,8 @@
 }
 +(NSString*) arr2string:(NSArray *) arr separator:(NSString*)separator trim:(bool) btrim
 {
-    
+    if(arr.count==0)
+        return nil;
     NSMutableArray * marr = [arr mutableCopy];
     
 begin: