Project

General

Profile

« Previous | Next » 

Revision 6d9b8e14

Added by Andreas Kohlbecker over 9 years ago

avoiding some warnings

View differences:

7.x/themes/palmweb_2/template.php
30 30
  if (!$hideImages) {
31 31
    // Preferred image.
32 32
    // Hardcoded for testing.
33
    $defaultRepresentationPart = FALSE;
33
    $defaultRepresentationPart = new stdClass();
34 34
    $defaultRepresentationPart->width = 184;
35 35
    $defaultRepresentationPart->height = 144;
36 36
    $defaultRepresentationPart->uri = drupal_get_path('theme', 'palmweb_2') . '/images/no_picture.png';
......
221 221
    if (hasFeatureNodeDescriptionElements($node)) {
222 222

  
223 223
      $featureRepresentation = isset($node->feature->representation_L10n) ? $node->feature->representation_L10n : 'Feature';
224
      $block = new stdClass();
224 225
      $block->module = 'cdm_dataportal';
225 226
      // If the option is enabled the description elements will be added
226 227
      // to the array.

Also available in: Unified diff