Skip to content

Commit 8be73ba

Browse files
committed
ok
1 parent 59c05ad commit 8be73ba

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/ClickHouseQuery.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,8 @@ public function queryFalse($sql, $post_data = [], $sess = null)
184184
*/
185185
public function queryValue($sql, $post_data = null, $sess = null)
186186
{
187-
// Do query
188187
$ans = $this->anyQuery($sql, $post_data, $sess);
189188

190-
// Return false if error
191189
if (!empty($ans['curl_error'])) {
192190
$this->last_error_str = $ans['curl_error'];
193191
return false;
@@ -447,7 +445,7 @@ public function queryFullArray($sql, $data_only = false, $sess = null)
447445
}
448446
$this->names = $keys = (is_array($this->meta) && count($this->meta)) ?
449447
array_column($this->meta, 'name') : null;
450-
$this->types = is_array($keys) ?
448+
$this->types = (\is_array($keys) && \is_array($this->meta)) ?
451449
array_column($this->meta, 'type') : null;
452450

453451
if ($this->json_compact && !empty($keys)) {

0 commit comments

Comments
 (0)