From d90b33f68bda57e37f412cbc2f96433c73fecdac Mon Sep 17 00:00:00 2001 From: Alex Killing Date: Thu, 18 Jul 2024 17:37:52 +0200 Subject: [PATCH] 41739: Error when trying to open ILIAS Learning module --- components/ILIAS/COPage/classes/class.ilPageObject.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/components/ILIAS/COPage/classes/class.ilPageObject.php b/components/ILIAS/COPage/classes/class.ilPageObject.php index 4e98f1bd6b59..f8657451a09e 100755 --- a/components/ILIAS/COPage/classes/class.ilPageObject.php +++ b/components/ILIAS/COPage/classes/class.ilPageObject.php @@ -631,6 +631,14 @@ public static function _lookupActivationData( array($a_id, $a_parent_type, $a_lang) ); $rec = $db->fetchAssoc($set); + if (!$rec) { + return [ + "active" => 1, + "activation_start" => null, + "activation_end" => null, + "show_activation_info" => 0 + ]; + } } return $rec;