RSS Feed/News Dead code in SearchController::convertShortSearchNames

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
26,014
Points
823

Reputation:

PHP:

Code:
    protected function convertShortSearchNames(array $input)
    {
        $output = [];

...

if (isset($input['o']))
        {
                $output['o'] = $input['o'] ?: null;
        }

return $output;

return [
            'search_type' => $input['t'] ?: null,
            'keywords' => $input['q'],
            'c' => $input['c'],
            'grouped' => $input['g'] ? 1 : 0,
            'order' => $input['o'] ?: null,
        ];
    }

The order...

Read more

Continue reading...
 
Status
Not open for further replies.
Top