[xoops-cvslog 3211] CVS update: xoops2jp/html/modules/base/kernel

Back to archive index

NobuNobu nobun****@users*****
2006年 5月 28日 (日) 16:28:45 JST


Index: xoops2jp/html/modules/base/kernel/handler.php
diff -u xoops2jp/html/modules/base/kernel/handler.php:1.1.2.14 xoops2jp/html/modules/base/kernel/handler.php:1.1.2.15
--- xoops2jp/html/modules/base/kernel/handler.php:1.1.2.14	Tue Apr 11 18:54:49 2006
+++ xoops2jp/html/modules/base/kernel/handler.php	Sun May 28 16:28:44 2006
@@ -261,10 +261,10 @@
 				$queryString = "";
 				$maxCount = $criteria->getCountChildElements();
 				for ($i = 0; $i < $maxCount ; $i++) {
-					$queryString .= " " . $this->_makeCriteria4sql($criteria->getChildElement($i));
-					if (($i + 1) != $maxCount) {
+					if ($i != 0) {
 						$queryString .= " " . $criteria->getCondition($i);
 					}
+					$queryString .= " " . $this->_makeCriteria4sql($criteria->getChildElement($i));
 				}
 				
 				return "(" . $queryString . ")";
@@ -295,8 +295,10 @@
 							break;
 							
 						default:
-							$value = $criteria->getValue();
+							$value = $this->db->quoteString($value);
 					}
+				} else {
+				    $value = $this->db->quoteString($value);
 				}
 
 				if ($name != null) {


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