Commit:    3bfd2c544c6c560d19a0df7649a863434556f652
Author:    Sobak <[email protected]>         Thu, 12 Jun 2014 21:36:46 
+0200
Parents:   1d46b0c35603f42a5e618cd4009d3508a7e97d60
Branches:  master

Link:       
http://git.php.net/?p=web/bugs.git;a=commitdiff;h=3bfd2c544c6c560d19a0df7649a863434556f652

Log:
Revert "This code was redundant"

This reverts commit 1d46b0c35603f42a5e618cd4009d3508a7e97d60.

Changed paths:
  M  www/bug.php


Diff:
diff --git a/www/bug.php b/www/bug.php
index 1c46c24..1fb3aa2 100644
--- a/www/bug.php
+++ b/www/bug.php
@@ -172,11 +172,18 @@ $block_user = isset($block_user) ? $block_user : 
$bug['block_user_comment'];
 $is_private = isset($is_private) ? $is_private : $bug['private'];
 
 // Handle any updates, displaying errors if there were any
-$RESOLVE_REASONS = $FIX_VARIATIONS = array();
+$RESOLVE_REASONS = $FIX_VARIATIONS = $pseudo_pkgs = array();
+
+$project = $bug['project'];
+
+// Only fetch stuff when it's really needed
+if ($edit && $edit < 3) {
+       $pseudo_pkgs = get_pseudo_packages($project, false); // false == no 
read-only packages included
+}
 
 // Fetch RESOLVE_REASONS array
 if ($edit === 1) {
-       list($RESOLVE_REASONS, $FIX_VARIATIONS) = 
get_resolve_reasons($bug['project']);
+       list($RESOLVE_REASONS, $FIX_VARIATIONS) = get_resolve_reasons($project);
 }
 
 if (isset($_POST['ncomment']) && !isset($_POST['preview']) && $edit == 3) {


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to