cvs: pear /DB_Table/DB Table.php

From: Date: Fri, 07 Apr 2006 20:08:19 +0000
Subject: cvs: pear /DB_Table/DB Table.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-39474@lists.php.net to get a copy of this message
wiesemann Fri Apr 7 20:08:19 2006 UTC Modified files: /pear/DB_Table/DB Table.php Log: - really fix bug #7287 (c&p errors in last commit) http://cvs.php.net/viewcvs.cgi/pear/DB_Table/DB/Table.php?r1=1.64&r2=1.65&diff_format=u Index: pear/DB_Table/DB/Table.php diff -u pear/DB_Table/DB/Table.php:1.64 pear/DB_Table/DB/Table.php:1.65 --- pear/DB_Table/DB/Table.php:1.64 Fri Apr 7 16:48:22 2006 +++ pear/DB_Table/DB/Table.php Fri Apr 7 20:08:19 2006 @@ -19,7 +19,7 @@ * * @license http://www.gnu.org/copyleft/lesser.html LGPL * -* @version $Id: Table.php,v 1.64 2006/04/07 16:48:22 wiesemann Exp $ +* @version $Id: Table.php,v 1.65 2006/04/07 20:08:19 wiesemann Exp $ * */ @@ -754,20 +754,20 @@ // check whether the chosen mode is supported list($phptype,) = DB_Table::getPHPTypeAndDBSyntax($this->db); - $mode_supported = DB_Table::modeSupported($flag, $phptype); + $mode_supported = DB_Table::modeSupported($create, $phptype); if (PEAR::isError($mode_supported)) { return $mode_supported; } if (!$mode_supported) { return $this->throwError( DB_TABLE_ERR_CREATE_PHPTYPE, - "('$flag', '$phptype')" + "('$create', '$phptype')" ); } include_once 'DB/Table/Manager.php'; - switch ($flag) { + switch ($create) { case 'alter': $result = $this->alter(); @@ -775,7 +775,7 @@ case 'drop': case 'safe': - $result = $this->create($flag); + $result = $this->create($create); break; case 'verify': @@ -863,7 +863,7 @@ // unknown creation mode return $this->throwError( DB_TABLE_ERR_CREATE_FLAG, - "('$flag')" + "('$mode')" ); } }

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