onokazu
onoka****@users*****
2006年 5月 26日 (金) 12:31:54 JST
Index: xoops2jp/html/class/criteria.php diff -u xoops2jp/html/class/criteria.php:1.5 xoops2jp/html/class/criteria.php:1.5.8.1 --- xoops2jp/html/class/criteria.php:1.5 Wed Aug 3 21:39:11 2005 +++ xoops2jp/html/class/criteria.php Fri May 26 12:31:54 2006 @@ -1,5 +1,5 @@ <?php -// $Id: criteria.php,v 1.5 2005/08/03 12:39:11 onokazu Exp $ +// $Id: criteria.php,v 1.5.8.1 2006/05/26 03:31:54 onokazu Exp $ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPS.org // @@ -341,9 +341,7 @@ function render() { $value = $this->value; if (!in_array(strtoupper($this->operator), array('IN', 'NOT IN'))) { - if ( (substr($value, 0, 1) != '`') && (substr($value, -1) != '`') ) { - $value = "'".$value."'"; - } + $value = "'".$value."'"; } $clause = (!empty($this->prefix) ? "{$this->prefix}." : "") . $this->column; if ( !empty($this->function) ) {