diff --git a/include/QueryGenerator/QueryGenerator.php b/include/QueryGenerator/QueryGenerator.php
index b66c6b24fb150388ca04d9d6c28f01f1f46d591b..d5a21f9e2dd1f2656783644ba6b79951c4c7bca1 100644
--- a/include/QueryGenerator/QueryGenerator.php
+++ b/include/QueryGenerator/QueryGenerator.php
@@ -1154,12 +1154,8 @@ class QueryGenerator {
 				$value = "'$value'";
 			}
 
-			if($this->isNumericType($field->getFieldDataType())) {
-				if (empty($value)) {
-					$value = '0';
-				} else if (preg_match("/[^+\-0-9.]+/", $value)) {
-					$value = $db->quote($value);
-				}
+			if(($this->isNumericType($field->getFieldDataType())) && empty($value)) {				
+				$value = '0';
 			}
 			$sql[] = "$sqlOperator $value";
 		}