Skip to content

Commit

Permalink
One more place to use a stream.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Feb 3, 2017
1 parent b82cd80 commit 33f34fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion framework/Vfs/lib/Horde/Vfs/SqlFile.php
Expand Up @@ -59,7 +59,9 @@ public function write($path, $name, $tmpFile, $autocreate = false)
{
/* No need to check quota here as we will check it when we call
* writeData(). */
$data = file_get_contents($tmpFile);
if (!$data = @fopen($tmpFile, 'rb')) {
throw new Horde_Vfs_Exception('Unable to open ' . $tmpFile);
}
return $this->writeData($path, $name, $data, $autocreate);
}

Expand Down

0 comments on commit 33f34fb

Please sign in to comment.