From: Robin Appelman Date: Mon, 18 Apr 2011 13:31:40 +0000 (+0200) Subject: correct them the right way this time X-Git-Tag: v3.0~267^2~558^2~50 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=70bf44401d6f93d1b2da04a9fb01bbba65af42f8;p=nextcloud-server.git correct them the right way this time --- diff --git a/lib/filestorage.php b/lib/filestorage.php index 8a4c252cdc1..3d0bdf4cc0e 100644 --- a/lib/filestorage.php +++ b/lib/filestorage.php @@ -198,7 +198,7 @@ class OC_FILESTORAGE_LOCAL extends OC_FILESTORAGE{ case 'a+': OC_HOOK::emit( 'OC_FILESTORAGE', "read", array( 'storage'=>$this, 'path' => $path)); OC_HOOK::emit( 'OC_FILESTORAGE', "write", array( 'storage'=>$this, 'path' => $path)); - if(!exists($path)){ + if(!$exists){ OC_HOOK::emit( 'OC_FILESTORAGE', 'create', array( 'storage'=>$this, 'path' => $path)); } $this->clearFolderSizeCache($path); @@ -207,7 +207,7 @@ class OC_FILESTORAGE_LOCAL extends OC_FILESTORAGE{ case 'x': case 'a': OC_HOOK::emit( 'OC_FILESTORAGE', "write", array( 'storage'=>$this, 'path' => $path)); - if(!exists($path)){ + if(!$exists){ OC_HOOK::emit( 'OC_FILESTORAGE', 'create', array( 'storage'=>$this, 'path' => $path)); } $this->clearFolderSizeCache($path);