diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-04-18 15:31:40 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-04-18 15:31:40 +0200 |
commit | 70bf44401d6f93d1b2da04a9fb01bbba65af42f8 (patch) | |
tree | 3b06436b0d4efd23f04d34fa1b8445a0496c833b /lib/filestorage.php | |
parent | 2673b6c0547a27fbb2f7f694353416c99125b9ce (diff) | |
download | nextcloud-server-70bf44401d6f93d1b2da04a9fb01bbba65af42f8.tar.gz nextcloud-server-70bf44401d6f93d1b2da04a9fb01bbba65af42f8.zip |
correct them the right way this time
Diffstat (limited to 'lib/filestorage.php')
-rw-r--r-- | lib/filestorage.php | 4 |
1 files changed, 2 insertions, 2 deletions
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); |