NobuNobu
nobun****@users*****
2005年 7月 8日 (金) 18:53:32 JST
Index: xoops2jp/html/class/criteria.php diff -u xoops2jp/html/class/criteria.php:1.2.6.1.2.5 xoops2jp/html/class/criteria.php:1.2.6.1.2.6 --- xoops2jp/html/class/criteria.php:1.2.6.1.2.5 Fri Jul 8 18:19:13 2005 +++ xoops2jp/html/class/criteria.php Fri Jul 8 18:53:31 2005 @@ -1,5 +1,5 @@ <?php -// $Id: criteria.php,v 1.2.6.1.2.5 2005/07/08 09:19:13 nobunobu Exp $ +// $Id: criteria.php,v 1.2.6.1.2.6 2005/07/08 09:53:31 nobunobu Exp $ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPS.org // @@ -339,12 +339,11 @@ * @return string **/ function render() { - if (in_array(strtoupper($this->operator), array('IN', 'NOT IN'))) { - $value = $this->value; - } else { + $value = $this->value; + if (!in_array(strtoupper($this->operator), array('IN', 'NOT IN'))) { if ( (substr($value, 0, 1) != '`') && (substr($value, -1) != '`') ) { $db =& XoopsDatabaseFactory::getDatabaseConnection(); - $value = $db->quoteString($this->value); + $value = $db->quoteString($value); } } $clause = (!empty($this->prefix) ? "{$this->prefix}." : "") . $this->column;