diff options
| author | 2015-02-21 09:44:02 -0500 | |
|---|---|---|
| committer | 2015-02-21 09:47:40 -0500 | |
| commit | 74c020edc846d0afdecb05ae1e1f30a516dee002 (patch) | |
| tree | b06222c44a163f28bd2fb60a572bc4c655ad4702 /app/Models/Search.php | |
| parent | 50b6a02578c29c780e6fe36af712bdc7cfe81d3d (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.php | 4 |
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; |
