From e2feea8e71b5201d69bbb8457a430ae3761550cc Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 15 Jul 2015 21:28:19 +0000 Subject: [PATCH] make sure we are connected, as we need ADOdb object to convert charset to MySQL (eg. utf-8 --> utf8) --- api/src/Vfs/Sqlfs/StreamWrapper.php | 1 + 1 file changed, 1 insertion(+) diff --git a/api/src/Vfs/Sqlfs/StreamWrapper.php b/api/src/Vfs/Sqlfs/StreamWrapper.php index baacf3c7f3..645ddcb275 100644 --- a/api/src/Vfs/Sqlfs/StreamWrapper.php +++ b/api/src/Vfs/Sqlfs/StreamWrapper.php @@ -1637,6 +1637,7 @@ class StreamWrapper implements Vfs\StreamWrapperIface break; } // get host used be egw_db + $egw_db->connect(); $host = $egw_db->get_host(); $dsn = self::$pdo_type.':dbname='.$egw_db->Database.($host ? ';host='.$host.($egw_db->Port ? ';port='.$egw_db->Port : '') : '');