Commit e4ec42e4 authored by Gasol Wu's avatar Gasol Wu

avoid notice: undefined index

parent 9bbaa62c
......@@ -57,7 +57,8 @@ class Solarium_Client_ResponseParser_MoreLikeThis extends Solarium_Client_Respon
$query = $result->getQuery();
$postResult = parent::parse($result);
if ($terms = $data['interestingTerms'] and 'none' != $query->getInterestingTerms()) {
if (isset($data['interestingTerms']) and 'none' != $query->getInterestingTerms()) {
$terms = $data['interestingTerms'];
if ('details' == $query->getInterestingTerms()) {
$tempTerms = array();
for ($i = 0; $i < count($terms); $i += 2) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment