diff --git a/SourceCgit/SourceCgit.php b/SourceCgit/SourceCgit.php index e8e520f52..45d9c1793 100644 --- a/SourceCgit/SourceCgit.php +++ b/SourceCgit/SourceCgit.php @@ -143,7 +143,7 @@ public function commit( $p_repo, $p_data ) { # i.e. DATA=`echo $INPUT | sed -e 's/ /+/g'` list( , $t_commit_id, $t_branch ) = explode( ' ', $p_data ); list( , , $t_branch ) = explode( '/', $t_branch ); - $master_branches = map( 'trim', explode( ',', $p_repo->info['master_branch'])); + $master_branches = array_map( 'trim', explode( ',', $p_repo->info['master_branch'])); if (!in_array($t_branch,$master_branches) ) { return;