diff --git a/model/Versioned.php b/model/Versioned.php index 6dbfe57e1..6e0f09412 100644 --- a/model/Versioned.php +++ b/model/Versioned.php @@ -1249,8 +1249,11 @@ class Versioned extends DataExtension implements TemplateGlobalProvider { */ public function isLatestVersion() { $version = self::get_latest_version($this->owner->class, $this->owner->ID); + if($version) { + return ($version->Version == $this->owner->Version); + } - return ($version->Version == $this->owner->Version); + return false; } /**