diff --git a/config.php b/config.php index 1150e5c..6e63cf3 100644 --- a/config.php +++ b/config.php @@ -4,7 +4,7 @@ // ******************************************* $postgres_uri = getenv('DATABASE_URL'); - preg_match('^postgres://(.*):(.*)@(.*):(.*)/(.*)$', getenv('DATABASE_URL'), $matches); + preg_match('#^postgres://(.*):(.*)@(.*):(.*)/(.*)$#', getenv('DATABASE_URL'), $matches); define('DB_TYPE', "pgsql"); define('DB_HOST', $matches[3]); define('DB_USER', $matches[1]);