diff options
| -rw-r--r-- | lib/bootstrap.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/bootstrap.php b/lib/bootstrap.php index c92f604..0ba2599 100644 --- a/lib/bootstrap.php +++ b/lib/bootstrap.php @@ -159,6 +159,11 @@ if (isset($GLOBALS['DB_STUDIP_SLAVE_HOST'])) { DBManager::getInstance()->aliasConnection('studip', 'studip-slave'); } +if (Studip\ENV === 'production') { + DBManager::get()->setAttribute(PDO::ATTR_STRINGIFY_FETCHES, true); + DBManager::get('studip-slave')->setAttribute(PDO::ATTR_STRINGIFY_FETCHES, true); +} + // set default exception handler // command line or http request? if (isset($_SERVER['REQUEST_METHOD'])) { |
