aboutsummaryrefslogtreecommitdiff
path: root/app/Models/Search.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Models/Search.php')
-rw-r--r--app/Models/Search.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/Models/Search.php b/app/Models/Search.php
index ef8fc883d..84688be2e 100644
--- a/app/Models/Search.php
+++ b/app/Models/Search.php
@@ -1,5 +1,7 @@
<?php
+require_once(LIB_PATH . '/lib_date.php');
+
/**
* Contains a search from the search form.
*
@@ -9,7 +11,7 @@
class FreshRSS_Search {
// This contains the user input string
- private $raw_input;
+ private $raw_input = '';
// The following properties are extracted from the raw input
private $intitle;
private $min_date;
@@ -34,6 +36,10 @@ class FreshRSS_Search {
$input = $this->parseTagsSeach($input);
$this->search = $this->cleanSearch($input);
}
+
+ public function __toString() {
+ return $this->getRawInput();
+ }
public function getRawInput() {
return $this->raw_input;