Skip to content

Commit 4a0621b

Browse files
committed
Fixed condition where nothing could be returned.
1 parent 52543d0 commit 4a0621b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ToolkitApi/ToolkitService.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,9 +1093,11 @@ public function getBackEndVersion()
10931093
{
10941094
$diagnostics = $this->getDiagnostics();
10951095

1096-
if (isset($diagnostics['version'])) {
1097-
return $diagnostics['version'];
1096+
if (!$diagnostics['version']) {
1097+
return false;
10981098
}
1099+
1100+
return $diagnostics['version'];
10991101
}
11001102

11011103
/**

0 commit comments

Comments
 (0)