openrat-cms

# OpenRat Content Management System
git clone http://git.code.weiherhei.de/openrat-cms.git
Log | Files | Refs

commit 7f05efb9ae59a4f5189860d3751b07e9a23c2535
parent d4909c873530549c80a6641e72bc556eef44eb22
Author: Jan Dankert <develop@jandankert.de>
Date:   Fri,  7 Jun 2019 00:30:24 +0200

Fix: Abfrage, ob Cache-Datei existiert.

Diffstat:
modules/cms-core/model/File.class.php | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/cms-core/model/File.class.php b/modules/cms-core/model/File.class.php @@ -372,10 +372,10 @@ EOF public function loadValue() { - if ( filemtime($this->getCache()->getFilename() < $this->lastchangeDate)) + if ( is_file( $this->getCache()->getFilename() ) && filemtime($this->getCache()->getFilename() < $this->lastchangeDate)) $this->getCache()->invalidate(); - return $this->getCache()-get(); + return $this->getCache()->get(); }