From ba58f898b47ad535cbdb009dcbd327bb1d918ba2 Mon Sep 17 00:00:00 2001 From: xia0ta0 Date: Mon, 19 Aug 2013 14:50:02 +0800 Subject: [PATCH] * use ',' between repo accounts. --- module/user/model.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/module/user/model.php b/module/user/model.php index b1cd4077fb..5f740b3970 100644 --- a/module/user/model.php +++ b/module/user/model.php @@ -115,7 +115,14 @@ class userModel extends model if(!$rawCommiters) return array(); $commiters = array(); - foreach($rawCommiters as $commiter) $commiters[$commiter->commiter] = $commiter->realname ? $commiter->realname : $commiter->account; + foreach($rawCommiters as $commiter) + { + $userCommiters = explode(',', $commiter->commiter); + foreach($userCommiters as $userCommiter) + { + $commiters[$userCommiter] = $commiter->realname ? $commiter->realname : $commiter->account; + } + } return $commiters; }