Ticket #1459 (closed defect: fixed)
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
Note: See
TracTickets for help on using
tickets.