Ignore:
Timestamp:
Sep 26, 2010, 8:15:35 PM (11 years ago)
Author:
teymour
Message:

Bug étrange avec les url_for dans les task
Gestion plus rationnelle du app.yml
Parametrage de l'envoi des alertes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/apps/frontend/modules/solr/actions/actions.class.php

    r1417 r1438  
    117117      $this->results['docs'][$i]['titre'] = $obj->getTitre();
    118118      $this->results['docs'][$i]['personne'] = $obj->getPersonne();
    119       $this->results['docs'][$i]['highlighting'] = preg_replace('/^'."$this->results['docs'][$i]['personne']".'/', '', implode('...', $results['highlighting'][$res['id']]['text']));
     119      if (isset($results['highlighting'][$res['id']]['text']))
     120        $this->results['docs'][$i]['highlighting'] = preg_replace('/^'."$this->results['docs'][$i]['personne']".'/', '', implode('...', $results['highlighting'][$res['id']]['text']));
     121      else
     122        $this->results['docs'][$i]['highlighting'] = '';
    120123    }
    121124    $this->results['end'] = $deb + $nb;
Note: See TracChangeset for help on using the changeset viewer.