From 3fe38501b0bcab1ead3ad8d7146f90aa55472825 Mon Sep 17 00:00:00 2001 From: Moritz Strohm <strohm@data-quest.de> Date: Wed, 2 Aug 2023 10:32:50 +0200 Subject: [PATCH] fixed PHP 8.0 compatibility problem --- classes/OAuth.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/OAuth.class.php b/classes/OAuth.class.php index a71768a..d9c3cbb 100755 --- a/classes/OAuth.class.php +++ b/classes/OAuth.class.php @@ -121,7 +121,7 @@ class OAuth { header("Location: ".$url); exit; - } elseif ($json['error']) { + } elseif (!empty($json['error'])) { \PageLayout::postError(_("Authentifizierungsfehler:")." ".$json['error']); } else { if (\Studip\ENV === "development") { -- GitLab