Skip to content

Commit fc82dcc

Browse files
committed
v0.4.12
1 parent 3d7eeb0 commit fc82dcc

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/Base.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
class Base
2424
{
25-
const VERSION = '0.4.11';
25+
const VERSION = '0.4.12';
2626

2727
/**
2828
* @var bool - print verbose debug messages to STDOUT
@@ -160,6 +160,7 @@ protected function encodeLink($query)
160160

161161
/**
162162
* set $this->topic to string from URL elements, or empty string
163+
* @return bool
163164
*/
164165
protected function setTopicFromUrl()
165166
{
@@ -179,15 +180,19 @@ protected function setTopicFromUrl()
179180
if (!is_string($this->topic) || !strlen($this->topic)) {
180181
$this->topic = '';
181182

182-
return;
183+
return false;
183184
}
184185
// format query
185186
$this->topic = trim($this->topic);
186187
$this->topic = str_replace('_', ' ', $this->topic);
187188
$this->topic = urldecode($this->topic);
188189
if (!is_string($this->topic) || !strlen($this->topic)) {
189190
$this->topic = '';
191+
192+
return false;
190193
}
194+
195+
return true;
191196
}
192197

193198
protected function initFilesystem()

0 commit comments

Comments
 (0)