Address 'returning a value from a constructor is deprecated' warnings
This commit is contained in:
1 parent
4e771ac23d
commit
858a75dc66
3 files changed
+36
-11
No files matched your search
@@ -18,10 +18,16 @@ class ProvideAutoSuggest extends JSONController
|
||||
throw new UnexpectedValueException('Unsupported autosuggest request.');
|
||||
|
||||
if ($_REQUEST['type'] === 'tags' && isset($_REQUEST['data']))
|
||||
return $this->handleTagSearch();
|
||||
{
|
||||
$this->handleTagSearch();
|
||||
return;
|
||||
}
|
||||
|
||||
if ($_REQUEST['type'] === 'createtag' && isset($_REQUEST['tag']))
|
||||
return $this->handleTagCreation();
|
||||
{
|
||||
$this->handleTagCreation();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
private function handleTagSearch()
|
||||
|
||||
Reference in new issue
Block a user