function SQLWhere($SearchFor, $strSearchOption, $SearchFor2, $etype, $isSuggest) { $hasDigits = false; for ($i = 0; $i < strlen($SearchFor); $i++) { if (is_numeric($SearchFor[$i])) { $hasDigits = true; break; } } if (!$hasDigits) { for ($i = 0; $i < strlen($SearchFor2); $i++) { if (is_numeric($SearchFor2[$i])) { $hasDigits = true; break; } } } if (!$hasDigits) { return ""; } //$SearchFor = $this->prepare_datetime_for_search($SearchFor); if ($SearchFor == "") { return ""; } //$SearchFor2 = $this->prepare_datetime_for_search($SearchFor2); $SearchFor = prepare_for_db($this->field, $SearchFor, "time"); $SearchFor2 = prepare_for_db($this->field, $SearchFor2, "time"); return parent::SQLWhere($SearchFor, $strSearchOption, $SearchFor2, $etype, $isSuggest); }