mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-10-20 02:11:52 -04:00
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.
This commit is contained in:
1 parent
50b6a02578
commit
74c020edc8
1 file changed
+4
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user