summaryrefslogtreecommitdiffstats
path: root/lib/helper.php
diff options
context:
space:
mode:
authorValerio Ponte <valerio.ponte@gmail.com>2012-10-30 23:37:31 +0100
committerValerio Ponte <valerio.ponte@gmail.com>2012-11-14 20:10:20 +0100
commitde7e419610d3fde8a16367776279d76837a0ee62 (patch)
tree2b21989e8c7eb2a7d52781e8c68b78ab3a500eff /lib/helper.php
parent8e190a5a97fd2be24370aa8d3f21b7641506ae92 (diff)
downloadnextcloud-server-de7e419610d3fde8a16367776279d76837a0ee62.tar.gz
nextcloud-server-de7e419610d3fde8a16367776279d76837a0ee62.zip
Fixed style according to owncloud styleguide
Diffstat (limited to 'lib/helper.php')
-rw-r--r--lib/helper.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/helper.php b/lib/helper.php
index b5e2b8a0d4e..339a12dc1ed 100644
--- a/lib/helper.php
+++ b/lib/helper.php
@@ -534,8 +534,9 @@ class OC_Helper {
public static function tmpFileNoClean($postfix='') {
$tmpDirNoClean=get_temp_dir().'/oc-noclean/';
if (!file_exists($tmpDirNoClean) || !is_dir($tmpDirNoClean)) {
- if (file_exists($tmpDirNoClean))
+ if (file_exists($tmpDirNoClean)) {
unlink($tmpDirNoClean);
+ }
mkdir($tmpDirNoClean);
}
$file=$tmpDirNoClean.md5(time().rand()).$postfix;