e107inc/e107

View on GitHub
search.php

Summary

Maintainability
A
0 mins
Test Coverage
F
35%

Invalid offset "google" of array type array{}
Open

        if (check_class($this->search_prefs['google'])) 
Severity: Minor
Found in search.php by phan

Argument 2 (prefix) is false but \http_build_query() takes ?string
Open

                    $npParms = http_build_query($nextprev,false);
Severity: Minor
Found in search.php by phan

Invalid offset "selector" of array type array{}
Open

            if ($this->search_prefs['selector'] == 2) 
Severity: Minor
Found in search.php by phan

Invalid offset "selector" of array type array{}
Open

         if($this->search_prefs['selector'] == 1) 
Severity: Minor
Found in search.php by phan

Invalid offset "mysql_sort" of array type array{}
Open

            elseif (strlen($full_query) < ($char_count = ($this->search_prefs['mysql_sort'] ? 4 : 3))) 
Severity: Minor
Found in search.php by phan

Variable $sortarr was undeclared, but array fields are being added to it.
Open

            $sortarr[] = $info[$column];
Severity: Info
Found in search.php by phan

Invalid offset "time_secs" of array type array{}
Open

                        $this->message = LAN_SEARCH_17.$this->search_prefs['time_secs'].LAN_SEARCH_18;
Severity: Minor
Found in search.php by phan

Suspicious type null of a variable or expression used to build a string. (Expected type to be able to cast to a string)
Open

                        $this->message = LAN_SEARCH_17.$this->search_prefs['time_secs'].LAN_SEARCH_18;
Severity: Minor
Found in search.php by phan

Reference to undeclared property \secure_image->stop_keys
Open

  $stop_count = count($sch -> stop_keys);
Severity: Minor
Found in search.php by phan

Variable $pref is undeclared
Open

if (!check_class($pref['search_restrict'])) 
Severity: Minor
Found in search.php by phan

Invalid offset "selector" of array type array{}
Open

            if ($this->search_prefs['selector'] == 2) 
Severity: Minor
Found in search.php by phan

Invalid offset "plug_handlers" of array type array{}
Open

        foreach ($this->search_prefs['plug_handlers'] as $plug_dir => $active) 
Severity: Minor
Found in search.php by phan

Invalid offset "time_secs" of array type array{}
Open

                $time = time() - $this->search_prefs['time_secs'];
Severity: Minor
Found in search.php by phan

Argument 2 (options) is false but \e_parse::toGlyph() takes array|string defined at /code/e107_handlers/e_parse_class.php:3973
Open

        <button class='btn btn-primary' type='submit' name='s' value='1' data-loading-icon='fa-spinner' >".$tp->toGlyph('fa-search',false)."</button>";
Severity: Minor
Found in search.php by phan

Invalid offset "selector" of array type array{}
Open

        if ($this->search_prefs['selector'] == 2) 
Severity: Minor
Found in search.php by phan

Invalid offset "google" of array type array{}
Open

if (check_class($search_prefs['google'])) {
Severity: Minor
Found in search.php by phan

Invalid offset "selector" of array type array{}
Open

        if ($this->search_prefs['selector'] == 2) 
Severity: Minor
Found in search.php by phan

null passed to foreach instead of array
Open

        foreach ($this->search_prefs['plug_handlers'] as $plug_dir => $active) 
Severity: Minor
Found in search.php by phan

Reference to undeclared property \secure_image->stop_keys (Did you mean $stop_key)
Open

    foreach ($sch -> stop_keys as $stop_key) 
Severity: Minor
Found in search.php by phan

Invalid offset "selector" of array type array{}
Open

    if (varset($search_prefs['selector']) == 1) {
Severity: Minor
Found in search.php by phan

Suspicious array access to nullable ?array
Open

if (!vartrue($_GET['adv']) || $_GET['t'] == 'all')
Severity: Minor
Found in search.php by phan

Invalid offset "user_select" of array type array{}
Open

if ($search_prefs['user_select']) 
Severity: Minor
Found in search.php by phan

Invalid offset "google" of array type array{}
Open

        if (check_class($search_prefs['google'])) {
Severity: Minor
Found in search.php by phan

Invalid offset "selector" of array type array{}
Open

            if ($this->search_prefs['selector'] == 2) 
Severity: Minor
Found in search.php by phan

Invalid offset "selector" of array type array{}
Open

            ($this->search_prefs['selector'] == 1)  //FIXME PRE_CHECKBOXES and POST_CHECKBOXES
Severity: Minor
Found in search.php by phan

Invalid offset "multisearch" of array type array{}
Open

                    if ($this->search_prefs['multisearch']) 
Severity: Minor
Found in search.php by phan

Assigning false to property but \search_front->result_flag is int
Open

                $this->result_flag = false;
Severity: Minor
Found in search.php by phan

Invalid offset "core_handlers" of array type array{}
Open

               $search_info['comments']['listorder'] = $this->search_prefs['core_handlers']['comments']['order'];
Severity: Minor
Found in search.php by phan

Argument 2 (replace) is 3|4 but \str_replace() takes array|string
Open

                $this->message = str_replace('[x]', $char_count, LAN_417);
Severity: Minor
Found in search.php by phan

Variable $enhanced_types was undeclared, but array fields are being added to it.
Open

$enhanced_types['in'] = LAN_SEARCH_24.':';
Severity: Info
Found in search.php by phan

Invalid offset "time_restrict" of array type array{}
Open

            elseif ($this->search_prefs['time_restrict']) 
Severity: Minor
Found in search.php by phan

Invalid operator: right operand of - is null (expected number)
Open

                $time = time() - $this->search_prefs['time_secs'];
Severity: Minor
Found in search.php by phan

Invalid offset "selector" of array type array{}
Open

         if($this->search_prefs['selector'] == 1) 
Severity: Minor
Found in search.php by phan

Invalid offset "multisearch" of array type array{}
Open

            if ($this->search_prefs['multisearch']) 
Severity: Minor
Found in search.php by phan

Invalid offset 0 of array type array{}
Open

                $ret = varset($search_info[0]);
Severity: Minor
Found in search.php by phan

Invalid offset "selector" of array type array{}
Open

  if ($search_prefs['selector'] == 1) 
Severity: Minor
Found in search.php by phan

Invalid offset "google" of array type array{}
Open

            $google_js = check_class($this->search_prefs['google']) ? "onclick=\"uncheckG();\" " : "";
Severity: Minor
Found in search.php by phan

Invalid offset "selector" of array type array{}
Open

            else if ($this->search_prefs['selector'] == 1) 
Severity: Minor
Found in search.php by phan

Invalid offset "user_select" of array type array{}
Open

        if (!$this->search_prefs['user_select'] && $_GET['r'] < 1) 
Severity: Minor
Found in search.php by phan

There are no issues that match your filters.

Category
Status