Permalink
Browse files

fix(core): allows ElggFile to append files not yet existing

fixes #6949
  • Loading branch information...
jdalsem committed Mar 17, 2016
1 parent 094ce5c commit ac0ba3f214a24c10255aa3836e11d31a310e3089
Showing with 2 additions and 2 deletions.
  1. +2 −2 engine/classes/ElggDiskFilestore.php
@@ -22,7 +22,7 @@ class ElggDiskFilestore extends \ElggFilestore {
/**
* Global Elgg configuration
*
*
* @var \stdClass
*/
private $CONFIG;
@@ -68,7 +68,7 @@ public function open(\ElggFile $file, $mode) {
$path = substr($fullname, 0, $ls);
if (($mode != 'write') && (!file_exists($fullname))) {
if (($mode === 'read') && (!file_exists($fullname))) {
return false;
}

0 comments on commit ac0ba3f

Please sign in to comment.