bugfix in commits API result check

This commit is contained in:
Tilman Kranz 2021-11-27 16:22:29 +01:00
parent 89e1dbc6be
commit 165ebeb13d

View File

@ -111,7 +111,7 @@ class LinuxfooGitlab {
$commits_json = file_get_contents($commits_url); $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')); return self::error(__('Commits URL not reachable.', 'linuxfoo-gitlab'));
} }
@ -161,9 +161,8 @@ class LinuxfooGitlab {
'</li>'; '</li>';
} }
$out .= $out .= '</ul>';
'</ul>'. $out .= '</div>';
'</div>';
return $out; return $out;
} }