ソースを参照

160818

modify arr2string return nil when arr is empty.
Ray Zhang 9 年 前
コミット
b025733bf9
1 ファイル変更2 行追加1 行削除
  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: