diff --git a/src/Db/Drivers/Swoole/Statement.php b/src/Db/Drivers/Swoole/Statement.php index 3d83b10091ab6179378c77be2d79116f18e1655d..e5312dbea554aa224e412f3def9943be07f80139 100644 --- a/src/Db/Drivers/Swoole/Statement.php +++ b/src/Db/Drivers/Swoole/Statement.php @@ -306,14 +306,14 @@ class Statement extends BaseStatement implements IStatement if ($row) { next($this->result); - } - if (isset($row[$columnKey])) - { - return $row[$columnKey]; - } - elseif (is_numeric($columnKey)) - { - return array_values($row)[$columnKey] ?? null; + if (isset($row[$columnKey])) + { + return $row[$columnKey]; + } + elseif (is_numeric($columnKey)) + { + return array_values($row)[$columnKey] ?? null; + } } return null;