fix PHP Fatal error: Call to undefined function EGroupware\Api\Vfs\Sqlfs()

This commit is contained in:
Ralf Becker 2016-07-21 18:34:56 +02:00
parent 99824b5510
commit fefc2b5f88

View File

@ -150,7 +150,7 @@ class Utils extends StreamWrapper
);
$stmt = $delete_stmt = null;
$msgs = array();
$sqlfs = Vfs\Sqlfs();
$sqlfs = new StreamWrapper();
foreach($dirs as $path => $id)
{
if (!($stat = $sqlfs->url_stat($path, STREAM_URL_STAT_LINK)))
@ -309,7 +309,7 @@ class Utils extends StreamWrapper
{
$lostnfound = null;
$msgs = array();
$sqlfs = Vfs\Sqlfs();
$sqlfs = new StreamWrapper();
foreach(self::$pdo->query('SELECT fs.* FROM '.self::TABLE.' fs'.
' LEFT JOIN '.self::TABLE.' dir ON dir.fs_id=fs.fs_dir'.
' WHERE fs.fs_id > 1 AND dir.fs_id IS NULL') as $row)