File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 22
22
23
23
class Base
24
24
{
25
- const VERSION = '0.4.11 ' ;
25
+ const VERSION = '0.4.12 ' ;
26
26
27
27
/**
28
28
* @var bool - print verbose debug messages to STDOUT
@@ -160,6 +160,7 @@ protected function encodeLink($query)
160
160
161
161
/**
162
162
* set $this->topic to string from URL elements, or empty string
163
+ * @return bool
163
164
*/
164
165
protected function setTopicFromUrl ()
165
166
{
@@ -179,15 +180,19 @@ protected function setTopicFromUrl()
179
180
if (!is_string ($ this ->topic ) || !strlen ($ this ->topic )) {
180
181
$ this ->topic = '' ;
181
182
182
- return ;
183
+ return false ;
183
184
}
184
185
// format query
185
186
$ this ->topic = trim ($ this ->topic );
186
187
$ this ->topic = str_replace ('_ ' , ' ' , $ this ->topic );
187
188
$ this ->topic = urldecode ($ this ->topic );
188
189
if (!is_string ($ this ->topic ) || !strlen ($ this ->topic )) {
189
190
$ this ->topic = '' ;
191
+
192
+ return false ;
190
193
}
194
+
195
+ return true ;
191
196
}
192
197
193
198
protected function initFilesystem ()
You can’t perform that action at this time.
0 commit comments