Skip to content

Commit 256d438

Browse files
committed
[FIX] In case of SQL error function should return it
1 parent e45a29c commit 256d438

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

public/include/classes/monitoring.class.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,8 @@ public function getStatus($name) {
7070
if ($query && $query->bind_param('s', $name) && $query->execute() && $result = $query->get_result()) {
7171
return $result->fetch_assoc();
7272
} else {
73-
$this->sqlError();
73+
return $this->sqlError();
7474
}
75-
return $value;
7675
}
7776

7877
/**

0 commit comments

Comments
 (0)