svn: /pear/pearweb/trunk/public_html/notes/admin/ trans.php

From: Date: Tue, 23 Feb 2010 11:34:10 +0000
Subject: svn: /pear/pearweb/trunk/public_html/notes/admin/ trans.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-9209@lists.php.net to get a copy of this message
clockwerx Tue, 23 Feb 2010 11:34:10 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=295407 Log: Bug #17148 Add user note as doc bug syntax errors Bug: http://pear.php.net/bugs/17148 (unknown) Changed paths: U pear/pearweb/trunk/public_html/notes/admin/trans.php Modified: pear/pearweb/trunk/public_html/notes/admin/trans.php =================================================================== --- pear/pearweb/trunk/public_html/notes/admin/trans.php 2010-02-23 11:18:45 UTC (rev 295406) +++ pear/pearweb/trunk/public_html/notes/admin/trans.php 2010-02-23 11:34:10 UTC (rev 295407) @@ -57,13 +57,16 @@ passwd, reporter_name ) VALUES ( - '$registered', '$package_name', '$bug_type', '$email', '$handle', - '$sdesc', '$ldesc', null, '$php_version', '$php_os', - '$status', NOW(), null, '$reporter_name' + ?, ?, ?, ?, ?, + ?, ?, null, ?, ?, + ?, NOW(), null, ? ) "; - $dbh->query($sql); + $args = array($registered, $package_name, $bug_type + $email, $handle, $sdesc, $ldesc, $php_version, $php_os, $status, $reporter_name); + + $dbh->query($sql, $args); // TODO: add error handling $id = mysqli_insert_id($dbh->connection); @@ -197,4 +200,4 @@ $package = str_replace('-', '_', $matches[1]); $query = 'SELECT name FROM packages WHERE LCASE(name) = LCASE(?)'; return $dbh->getOne($query, $package); -} \ No newline at end of file +}

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