1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-13 18:24:57 +02:00
This commit is contained in:
Ryan Cramer
2020-04-27 15:59:00 -04:00
parent ca8e779402
commit 6ae08c901b
2 changed files with 5 additions and 1 deletions

View File

@@ -1741,6 +1741,10 @@ class Pageimage extends Pagefile {
return true;
}
public function __isset($key) {
if($key === 'original') return $this->original !== null;
return parent::__isset($key);
}
/**
* Basic debug info

View File

@@ -253,7 +253,7 @@ class PageimageVariations extends Wire implements \IteratorAggregate, \Countable
unset($info['parent'], $info['parentName'], $info['suffixAll']);
}
if(!$this->pageimage->original && $info['original']) {
if(!$this->pageimage->__isset('original') && $info['original']) {
$original = $this->pagefiles->get($info['original']);
if($original) $this->pageimage->setOriginal($original);
}