From 165ebeb13d41ddca6042773033d2feacc20a0b3c Mon Sep 17 00:00:00 2001 From: Tilman Kranz Date: Sat, 27 Nov 2021 16:22:29 +0100 Subject: [PATCH] bugfix in commits API result check --- linuxfoo-gitlab.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/linuxfoo-gitlab.php b/linuxfoo-gitlab.php index 50bdab6..2261dda 100644 --- a/linuxfoo-gitlab.php +++ b/linuxfoo-gitlab.php @@ -111,7 +111,7 @@ class LinuxfooGitlab { $commits_json = file_get_contents($commits_url); - if(is_null($project_json)) { + if(is_null($commits_json)) { return self::error(__('Commits URL not reachable.', 'linuxfoo-gitlab')); } @@ -161,9 +161,8 @@ class LinuxfooGitlab { ''; } - $out .= - ''. - ''; + $out .= ''; + $out .= ''; return $out; }