cvs: pearweb /public_html/bugs/include functions.inc

From: Date: Tue, 20 Feb 2007 05:42:43 +0000
Subject: cvs: pearweb /public_html/bugs/include functions.inc
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-5465@lists.php.net to get a copy of this message
cellog Tue Feb 20 05:42:43 2007 UTC Modified files: /pearweb/public_html/bugs/include functions.inc Log: wrong param order for in_array() http://cvs.php.net/viewvc.cgi/pearweb/public_html/bugs/include/functions.inc?r1=1.124&r2=1.125&diff_format=u Index: pearweb/public_html/bugs/include/functions.inc diff -u pearweb/public_html/bugs/include/functions.inc:1.124 pearweb/public_html/bugs/include/functions.inc:1.125 --- pearweb/public_html/bugs/include/functions.inc:1.124 Tue Feb 20 05:27:31 2007 +++ pearweb/public_html/bugs/include/functions.inc Tue Feb 20 05:42:43 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: functions.inc,v 1.124 2007/02/20 05:27:31 cellog Exp $ + * @version $Id: functions.inc,v 1.125 2007/02/20 05:42:43 cellog Exp $ */ @@ -1059,7 +1059,7 @@ $assigned = $dbh->getOne('SELECT assign FROM bugdb WHERE id=' . $bug_id); if ($assigned) { $assigned = $dbh->getOne('SELECT email FROM users WHERE handle="' . $assigned . '"'); - if ($assigned && !in_array($to, $assigned)) { + if ($assigned && !in_array($assigned, $to)) { // assigned is not a maintainer $to[] = $assigned; }

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