Browse Source

fixed sql to be more presise

geekbozu 9 years ago
parent
commit
bc566f3773
1 changed files with 4 additions and 4 deletions
  1. 4 4
      modification.xml

+ 4 - 4
modification.xml

@@ -39,9 +39,10 @@
 		return false;;</add>
 		</operation>
 		<operation>
-			<search position="replace">AND log_type = {string:log_type}',</search>
-			<add>AND log_type = {string:log_type}
-				OR ( ip <> {string:ip} AND log_type = {string:log_type} )',</add>
+			<search position="replace">WHERE log_time < {int:log_time}
+			AND log_type = {string:log_type}',</search>
+			<add>WHERE ( log_time < {int:log_time} AND log_type = {string:log_type} )
+		OR ( ip <> {string:ip} AND log_type = {string:log_type} )',</add>
 		</operation>
 		<operation>
 			<search position="after">'log_type' => $error_type,</search>
@@ -50,4 +51,3 @@
 		</operation>
 	</file>
 </modification>
-