mirror of
https://github.com/kvazar-network/webapp.git
synced 2025-03-12 05:31:09 +00:00
fix returning data types
This commit is contained in:
parent
e4782a642a
commit
b69634ee30
@ -87,7 +87,7 @@ class SQLite {
|
||||
|
||||
$result = $query->fetch();
|
||||
|
||||
return $result ? $result['value'] : false;
|
||||
return $result ? $result['value'] : '';
|
||||
|
||||
} catch(PDOException $e) {
|
||||
|
||||
@ -109,7 +109,7 @@ class SQLite {
|
||||
|
||||
$query->execute([$txid]);
|
||||
|
||||
return $query->rowCount() ? $query->fetch()['hash'] : [];
|
||||
return $query->rowCount() ? $query->fetch()['hash'] : '';
|
||||
|
||||
} catch(PDOException $e) {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user