mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 12:20:22 +00:00
Return numbers as numbers on all API endpoints
This commit is contained in:
@@ -69,7 +69,6 @@ class DatabaseService
|
||||
{
|
||||
$pdo = new \PDO('sqlite:' . $this->GetDbFilePath());
|
||||
$pdo->setAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION);
|
||||
$pdo->setAttribute(\PDO::ATTR_STRINGIFY_FETCHES, true);
|
||||
|
||||
$pdo->sqliteCreateFunction('regexp', function ($pattern, $value) {
|
||||
mb_regex_encoding('UTF-8');
|
||||
|
Reference in New Issue
Block a user