aboutsummaryrefslogtreecommitdiff
path: root/app/Models/Search.php
diff options
context:
space:
mode:
authorGravatar Alexis Degrugillier <github@ainw.org> 2015-02-21 09:44:02 -0500
committerGravatar Alexis Degrugillier <github@ainw.org> 2015-02-21 09:47:40 -0500
commit74c020edc846d0afdecb05ae1e1f30a516dee002 (patch)
treeb06222c44a163f28bd2fb60a572bc4c655ad4702 /app/Models/Search.php
parent50b6a02578c29c780e6fe36af712bdc7cfe81d3d (diff)
Add a default string representation
In some part of the code, the search is displayed as is and crash since there is no way to display the search object as a string.
Diffstat (limited to 'app/Models/Search.php')
-rw-r--r--app/Models/Search.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/Models/Search.php b/app/Models/Search.php
index 85340ff13..84688be2e 100644
--- a/app/Models/Search.php
+++ b/app/Models/Search.php
@@ -36,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;