Remove useless code
This commit is contained in:
parent
754a4d51bf
commit
04b5afb9f5
1 changed files with 2 additions and 3 deletions
|
@ -19,9 +19,8 @@ class kolab_files_observer implements SplObserver
|
||||||
|
|
||||||
switch ($event['name']) {
|
switch ($event['name']) {
|
||||||
case 'receivedHeaders':
|
case 'receivedHeaders':
|
||||||
$target = $this->dir . DIRECTORY_SEPARATOR . $this->file;
|
if (!$this->file || !($this->fp = @fopen($this->file, 'wb'))) {
|
||||||
if (!($this->fp = @fopen($target, 'wb'))) {
|
throw new Exception("Cannot open target file '{$this->file}'");
|
||||||
throw new Exception("Cannot open target file '{$target}'");
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue