cvs: pear /MDB/MDB Common.php mysql.php
| From: | Lukas Smith | Date: | Fri, 20 Dec 2002 18:10:22 +0000 |
| Subject: | cvs: pear /MDB/MDB Common.php mysql.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-7936@lists.php.net to get a copy of this message | ||
lsmith Fri Dec 20 13:10:22 2002 EDT
Modified files:
/pear/MDB/MDB mysql.php Common.php
Log:
minor readability improvement
Index: pear/MDB/MDB/mysql.php
diff -u pear/MDB/MDB/mysql.php:1.61 pear/MDB/MDB/mysql.php:1.62
--- pear/MDB/MDB/mysql.php:1.61 Fri Dec 20 12:54:25 2002
+++ pear/MDB/MDB/mysql.php Fri Dec 20 13:10:22 2002
@@ -42,7 +42,7 @@
// | Author: Lukas Smith <smith@backendmedia.com> |
// +----------------------------------------------------------------------+
//
-// $Id: mysql.php,v 1.61 2002/12/20 17:54:25 lsmith Exp $
+// $Id: mysql.php,v 1.62 2002/12/20 18:10:22 lsmith Exp $
//
require_once 'MDB/Common.php';
@@ -570,8 +570,9 @@
{
$count = count($fields);
for($keys = 0, $query = $values = '',reset($fields), $field = 0;
- $field<$count;
- next($fields), $field++) {
+ $field<$count;
+ next($fields), $field++)
+ {
$name = key($fields);
if ($field>0) {
$query .= ',';
Index: pear/MDB/MDB/Common.php
diff -u pear/MDB/MDB/Common.php:1.81 pear/MDB/MDB/Common.php:1.82
--- pear/MDB/MDB/Common.php:1.81 Fri Dec 20 12:54:25 2002
+++ pear/MDB/MDB/Common.php Fri Dec 20 13:10:22 2002
@@ -42,7 +42,7 @@
// | Author: Lukas Smith <smith@backendmedia.com> |
// +----------------------------------------------------------------------+
//
-// $Id: Common.php,v 1.81 2002/12/20 17:54:25 lsmith Exp $
+// $Id: Common.php,v 1.82 2002/12/20 18:10:22 lsmith Exp $
/**
* @package MDB
@@ -1518,7 +1518,8 @@
$count = count($fields);
for($keys = 0, $condition = $update = $insert = $values = '', reset($fields),
$field = 0;
$field < $count;
- next($fields), $field++) {
+ next($fields), $field++)
+ {
$name = key($fields);
if ($field > 0) {
$update .= ', ';