Projet

Général

Profil

Révision 6e9292aa

Ajouté par Assos Assos il y a presque 9 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/ds/modules/ds_search/ds_search.module
54 54
 * Search page theming.
55 55
 */
56 56
function theme_ds_search_page($build) {
57
  // fix for Drupal 7.33+
58
  if(isset($build['theme_hook_original'])) {
59
    unset($build['theme_hook_original']);
60
  }
57 61

  
58 62
  // Check on empty search results.
59 63
  if (empty($build['search_results'])) {
......
481 485
  // Load results.
482 486
  $find = $query->execute();
483 487
  $results = array();
484
  foreach ($find as $item) {
488
  foreach ((array) $find as $item) {
485 489
    $node = node_load($item->sid);
486 490
    $node->entity_type = 'node';
487 491
    $node->entity_id = $item->sid;

Formats disponibles : Unified diff