make sure we are connected, as we need ADOdb object to convert charset to MySQL (eg. utf-8 --> utf8)

This commit is contained in:
Ralf Becker 2015-07-15 21:28:19 +00:00
parent aa7857a4a6
commit e2feea8e71

View File

@ -1637,6 +1637,7 @@ class StreamWrapper implements Vfs\StreamWrapperIface
break; break;
} }
// get host used be egw_db // get host used be egw_db
$egw_db->connect();
$host = $egw_db->get_host(); $host = $egw_db->get_host();
$dsn = self::$pdo_type.':dbname='.$egw_db->Database.($host ? ';host='.$host.($egw_db->Port ? ';port='.$egw_db->Port : '') : ''); $dsn = self::$pdo_type.':dbname='.$egw_db->Database.($host ? ';host='.$host.($egw_db->Port ? ';port='.$egw_db->Port : '') : '');