diff --git a/module/mr/control.php b/module/mr/control.php index e830ab1a08..6e7f73ff5d 100644 --- a/module/mr/control.php +++ b/module/mr/control.php @@ -163,7 +163,6 @@ class mr extends control if($MR->canDeleteBranch and $priv->name == $MR->sourceBranch) $MR->canDeleteBranch = false; } - $targetBranchList = array(); foreach($branchList as $branch) $targetBranchList[$branch] = $branch; @@ -1032,7 +1031,7 @@ class mr extends control * @param int $hostID * @param int|string $project * @access public - * @return array + * @return void */ public function ajaxGetBranchPivs($hostID, $project) { diff --git a/module/mr/js/create.js b/module/mr/js/create.js index 1b4e30197e..9fe52f0126 100644 --- a/module/mr/js/create.js +++ b/module/mr/js/create.js @@ -28,7 +28,6 @@ function getBranchPriv(project) { branchPrivs = eval('(' + response + ')'); }); - } $(function() @@ -113,7 +112,6 @@ $(function() return false; } }); - }); $('#repoID').change(function()