Changeset 26385


Ignore:
Timestamp:
06/17/10 16:35:40 (7 years ago)
Author:
adrenalin
Message:

Fix a confusion between object and property. Check if main image exists before trying to use it for recreating images. Fixes #1857, fixes #1858.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ragnaroek/midcom/midcom.helper.datamanager2/type/image.php

    r26383 r26385  
    380380            $att = $this->attachments['original'];
    381381        }
     382        else if (array_key_exists('main', $this->attachments))
     383        {
     384            // Copy main as original
     385            $att = $this->attachments['main'];
     386        }
    382387        else
    383388        {
    384             // Copy main as original
    385             $att = $this->attachments['main']->id;
    386         }
     389            return false;
     390        }
     391       
    387392        $src = $att->open('r');
    388393
Note: See TracChangeset for help on using the changeset viewer.