[xoops-cvslog 3166] CVS update: xoops2jp/html/class

Back to archive index

Minahito minah****@users*****
2006年 5月 26日 (金) 18:15:50 JST


Index: xoops2jp/html/class/criteria.php
diff -u xoops2jp/html/class/criteria.php:1.2.8.6 xoops2jp/html/class/criteria.php:1.2.8.7
--- xoops2jp/html/class/criteria.php:1.2.8.6	Tue Apr 11 15:12:15 2006
+++ xoops2jp/html/class/criteria.php	Fri May 26 18:15:50 2006
@@ -1,5 +1,5 @@
 <?php
-// $Id: criteria.php,v 1.2.8.6 2006/04/11 06:12:15 minahito Exp $
+// $Id: criteria.php,v 1.2.8.7 2006/05/26 09:15:50 minahito Exp $
 //  ------------------------------------------------------------------------ //
 //                XOOPS - PHP Content Management System                      //
 //                    Copyright (c) 2000 XOOPS.org                           //
@@ -502,13 +502,12 @@
      * Make a sql condition string
      *
      * @return  string
+     * @deprecated XoopsObjectGenericHandler::_makeCriteriaElement4sql()
      **/
     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) ) {


xoops-cvslog メーリングリストの案内
Back to archive index