Used more dbm::is_result() instead of (!$r) or (!count($r)), still there are
more pending ... Also put SQL table columns into back-ticks. Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
@@ -213,7 +213,7 @@ function poller_max_connections_reached() {
|
||||
// The processlist only shows entries of the current user
|
||||
if ($max != 0) {
|
||||
$r = q("SHOW PROCESSLIST");
|
||||
if (!$r)
|
||||
if (!dbm::is_result($r))
|
||||
return false;
|
||||
|
||||
$used = count($r);
|
||||
|
||||
Reference in New Issue
Block a user