Browse Source

fix returning data types

pull/8/head
d47081 2 years ago
parent
commit
b69634ee30
  1. 4
      library/sqlite.php

4
library/sqlite.php

@ -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…
Cancel
Save