Ticket #1459 (closed defect: fixed)

Opened 10 months ago

Last modified 9 months ago

Undefined Variable in Search/Scorer.php

Reported by: gnat Owned by: jwage
Priority: minor Milestone: 1.0.3
Component: Attributes Version: 1.0.0
Severity: Keywords:
Cc: Has Test: no
Status: Pending Core Response Has Patch: no

Description

$component is undefined on line 52 of Search/Scorer.php

    public function process()
    {
        foreach ($this->_resultSet as $mainRow) {
            if (isset($mainRow[$component])) {  <<<---- undefined.
                if ( ! is_array($mainRow[$component])) {
                    throw new Doctrine_Search_Exception('Wrong data type in result set.');
                }
                
                foreach ($mainRow[$component] as $indexRow) {

                }
            }
        }
    }

Change History

Changed 10 months ago by jwage

  • milestone set to 1.0.3

Changed 9 months ago by jwage

  • status changed from new to closed
  • resolution set to fixed

In r4986 this was fixed. The file is not used and was something that was started but never finished.

Note: See TracTickets for help on using tickets.