summaryrefslogtreecommitdiff
path: root/plugins/kolab_files
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2015-02-06 11:24:39 (GMT)
committerAleksander Machniak <machniak@kolabsys.com>2015-02-06 11:24:39 (GMT)
commit04b5afb9f53f62133f01025f9e863733cf7635e9 (patch)
tree90a30c5e4e57a611ad3bb9bdbced23f936c5a2b6 /plugins/kolab_files
parent754a4d51bfa6f08ee7aadff2c3b270e9ca185e28 (diff)
downloadroundcubemail-plugins-kolab-04b5afb9f53f62133f01025f9e863733cf7635e9.tar.gz
Remove useless code
Diffstat (limited to 'plugins/kolab_files')
-rw-r--r--plugins/kolab_files/lib/kolab_files_observer.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/kolab_files/lib/kolab_files_observer.php b/plugins/kolab_files/lib/kolab_files_observer.php
index d1a1b4e..535fe79 100644
--- a/plugins/kolab_files/lib/kolab_files_observer.php
+++ b/plugins/kolab_files/lib/kolab_files_observer.php
@@ -19,9 +19,8 @@ class kolab_files_observer implements SplObserver
switch ($event['name']) {
case 'receivedHeaders':
- $target = $this->dir . DIRECTORY_SEPARATOR . $this->file;
- if (!($this->fp = @fopen($target, 'wb'))) {
- throw new Exception("Cannot open target file '{$target}'");
+ if (!$this->file || !($this->fp = @fopen($this->file, 'wb'))) {
+ throw new Exception("Cannot open target file '{$this->file}'");
}
break;