openrat-cms

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

commit da8ebe71043f341842107758b3e5629f54e7752b
parent eb3dbae004794240f3f4118b84c74cc649bd8120
Author: Jan Dankert <develop@jandankert.de>
Date:   Tue, 21 May 2019 23:49:54 +0200

Fix: Feststellen, dass DB-Update notwendig ist.

Diffstat:
modules/database-update/DbUpdate.class.php | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/modules/database-update/DbUpdate.class.php b/modules/database-update/DbUpdate.class.php @@ -22,9 +22,12 @@ class DbUpdate // Cool, der aktuelle DB-Stand passt zu dieser Version. Das ist auch der Normalfall. Weiter so. return false; - if ( $version > self::SUPPORTED_VERSION ) + elseif ( $version > self::SUPPORTED_VERSION ) // Oh oh, in der Datenbank ist eine neuere Version, als wir unterstützen. throw new \LogicException('Actual DB version is not supported. '."DB-Version is $version, but ".OR_TITLE." ".OR_VERSION." only supports version ".self::SUPPORTED_VERSION ); + + else + return true; // Update required. }