cvs: pearweb /public_html/bugs bug.php

From: Date: Wed, 21 Feb 2007 04:08:52 +0000
Subject: cvs: pearweb /public_html/bugs bug.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-5467@lists.php.net to get a copy of this message
cellog Wed Feb 21 04:08:52 2007 UTC Modified files: /pearweb/public_html/bugs bug.php Log: fix Bug #10133 foreach() error when closing PEAR bug http://cvs.php.net/viewvc.cgi/pearweb/public_html/bugs/bug.php?r1=1.112&r2=1.113&diff_format=u Index: pearweb/public_html/bugs/bug.php diff -u pearweb/public_html/bugs/bug.php:1.112 pearweb/public_html/bugs/bug.php:1.113 --- pearweb/public_html/bugs/bug.php:1.112 Sat Feb 17 23:22:37 2007 +++ pearweb/public_html/bugs/bug.php Wed Feb 21 04:08:52 2007 @@ -15,7 +15,7 @@ * @package Bugs * @copyright Copyright (c) 1997-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License - * @version $Id: bug.php,v 1.112 2007/02/17 23:22:37 cellog Exp $ + * @version $Id: bug.php,v 1.113 2007/02/21 04:08:52 cellog Exp $ */ /* @@ -394,10 +394,12 @@ $link = Bug_DataObject::bugDB('bugdb_roadmap_link'); $link->id = $id; $link->delete(); - foreach ($_POST['in']['fixed_versions'] as $rid) { - $link->id = $id; - $link->roadmap_id = $rid; - $link->insert(); + if (isset($_POST['in']['fixed_versions'])) { + foreach ($_POST['in']['fixed_versions'] as $rid) { + $link->id = $id; + $link->roadmap_id = $rid; + $link->insert(); + } } if (!empty($ncomment)) {

« previous php.pear.core (#5467) next »