Commits

Bogdan Savluk  committed 9bcc28b

fix cresize

  • Participants
  • Parent commits c8a3d2e

Comments (0)

Files changed (1)

             $master = Image::AUTO;
         } elseif (!$this->valid_size('master', $master))
             throw new CException('image invalid master');
-        if ((int)$this->width > (int)$width && (int)$this->height > (int)$height)
+        if ((int)$this->width > (int)$width || (int)$this->height > (int)$height)
             $this->actions['resize'] = array
             (
                 'width' => $width,