Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-15942

warnings in morelikethis

    XMLWordPrintable

Details

    Description

      besides the wrong accumulatro being stopped at the end of ezsolr::moreLikeThis(), there are php warnings generated if solr responds with a no-data answer.

      patch:

              //if ( count($resultArray) > 0 )
              $objectRes = array();
              if ( isset( $resultArray['response'] ) && is_array( $resultArray['response'] ) )
              {
                  $result = $resultArray['response'];
                  $searchCount = $result['numFound'];
      

      Attachments

        Activity

          People

            pborgerm pborgerm
            72f8acac-185f-4a54-9470-a7473f50daab@accounts.ibexa.co Gaetano Giunta
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: