From: <var...@us...> - 2021-08-11 10:40:11
|
Revision: 10486 http://sourceforge.net/p/phpwiki/code/10486 Author: vargenau Date: 2021-08-11 10:40:09 +0000 (Wed, 11 Aug 2021) Log Message: ----------- Use same parameter name as parent Modified Paths: -------------- trunk/lib/WikiDB/ADODB.php trunk/lib/WikiDB/PDO.php Modified: trunk/lib/WikiDB/ADODB.php =================================================================== --- trunk/lib/WikiDB/ADODB.php 2021-08-11 10:38:12 UTC (rev 10485) +++ trunk/lib/WikiDB/ADODB.php 2021-08-11 10:40:09 UTC (rev 10486) @@ -80,16 +80,16 @@ } // add surrounding quotes '' if string - public function quote($in) + public function quote($s) { - if (is_int($in) || is_double($in)) { - return $in; - } elseif (is_bool($in)) { - return $in ? 1 : 0; - } elseif (is_null($in)) { + if (is_int($s) || is_double($s)) { + return $s; + } elseif (is_bool($s)) { + return $s ? 1 : 0; + } elseif (is_null($s)) { return 'NULL'; } else { - return $this->_backend->_dbh->qstr($in); + return $this->_backend->_dbh->qstr($s); } } Modified: trunk/lib/WikiDB/PDO.php =================================================================== --- trunk/lib/WikiDB/PDO.php 2021-08-11 10:38:12 UTC (rev 10485) +++ trunk/lib/WikiDB/PDO.php 2021-08-11 10:40:09 UTC (rev 10486) @@ -77,16 +77,16 @@ // With PDO we should really use native quoting using prepared statements with ? // Add surrounding quotes '' if string - public function quote($in) + public function quote($s) { - if (is_int($in) || is_double($in)) { - return $in; - } elseif (is_bool($in)) { - return $in ? 1 : 0; - } elseif (is_null($in)) { + if (is_int($s) || is_double($s)) { + return $s; + } elseif (is_bool($s)) { + return $s ? 1 : 0; + } elseif (is_null($s)) { return 'NULL'; } else { - return $this->qstr($in); + return $this->qstr($s); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |