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