Changeset 2943


Ignore:
Timestamp:
Sep 4, 2012, 11:05:10 PM (8 years ago)
Author:
nosdeputes
Message:

fix warning Solr

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/lib/model/solr/SolrListener.php

    r1414 r2943  
    3535      $f = $obj->get($field);
    3636      if ($f) {
    37         if (is_array($f) || (get_class($f) == 'Doctrine_Collection')) {
     37        if (is_array($f) || (is_object($f) && get_class($f) == 'Doctrine_Collection')) {
    3838          $res = array();
    3939          foreach($f as $i) {
     
    4242          return $res;
    4343        }
    44         if (get_class($f) && ! $f->id)
     44        if (is_object($f) && get_class($f) && ! $f->id)
    4545          return array();
    4646        return array(strip_tags($f));
Note: See TracChangeset for help on using the changeset viewer.