cvs: pearweb /public_html/bugs bug.php

From: Date: Mon, 07 Jun 2004 19:01:44 +0000
Subject: cvs: pearweb /public_html/bugs bug.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-20321@lists.php.net to get a copy of this message
mj Mon Jun 7 15:01:44 2004 EDT Modified files: /pearweb/public_html/bugs bug.php Log: * Global $dbh in delete_comment(). Bug: #1570 Patch by: danielc http://cvs.php.net/diff.php/pearweb/public_html/bugs/bug.php?r1=1.33&r2=1.34&ty=u Index: pearweb/public_html/bugs/bug.php diff -u pearweb/public_html/bugs/bug.php:1.33 pearweb/public_html/bugs/bug.php:1.34 --- pearweb/public_html/bugs/bug.php:1.33 Wed May 19 23:16:15 2004 +++ pearweb/public_html/bugs/bug.php Mon Jun 7 15:01:44 2004 @@ -1,6 +1,6 @@ <?php /* vim: set noet ts=4 sw=4: : */ -// $Id: bug.php,v 1.33 2004/05/20 03:16:15 dufuz Exp $ +// $Id: bug.php,v 1.34 2004/06/07 19:01:44 mj Exp $ require_once './include/prepend.inc'; require_once './include/cvs-auth.inc'; @@ -770,6 +770,7 @@ function delete_comment($id, $com_id) { + global $dbh; $query = 'DELETE FROM bugdb_comments WHERE bug='.(int)$id.' AND id='.(int)$com_id; $res =& $dbh->query($query); }

« previous php.pear.cvs (#20321) next »