Skip to content

Commit

Permalink
[VD:abstract] fix notice error on options()
Browse files Browse the repository at this point in the history
  • Loading branch information
nao-pon committed Jul 16, 2016
1 parent 266b79f commit 4307093
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions php/elFinderVolumeDriver.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,7 @@ public function mount(array $opts) {
$parts = explode(',', isset($this->options['uploadOrder']) ? $this->options['uploadOrder'] : 'deny,allow');
$this->uploadOrder = array(trim($parts[0]), trim($parts[1]));
} else { // telephat_mode off
$this->uploadOrder = $this->options['uploadOrder'];
$this->uploadOrder = ! empty($this->options['uploadOrder'])? $this->options['uploadOrder'] : array('deny', 'allow');
}

if (!empty($this->options['uploadMaxSize'])) {
Expand Down Expand Up @@ -1330,7 +1330,7 @@ public function options($hash) {
'uploadMaxSize' => intval($this->uploadMaxSize),
'uploadMaxConn' => intval($this->options['uploadMaxConn']),
'uploadMime' => array(
'firstOrder' => $this->uploadOrder[0],
'firstOrder' => isset($this->uploadOrder[0])? $this->uploadOrder[0] : 'deny',
'allow' => $this->uploadAllow,
'deny' => $this->uploadDeny
),
Expand All @@ -1341,7 +1341,7 @@ public function options($hash) {
'extract' => isset($this->archivers['extract']) && is_array($this->archivers['extract']) ? array_keys($this->archivers['extract']) : array(),
'createext' => $createext
),
'uiCmdMap' => $this->options['uiCmdMap'],
'uiCmdMap' => (isset($this->options['uiCmdMap']) && is_array($this->options['uiCmdMap']))? array_values($this->options['uiCmdMap']) : array(),
'syncChkAsTs' => intval($this->options['syncChkAsTs']),
'syncMinMs' => intval($this->options['syncMinMs'])
);
Expand Down

0 comments on commit 4307093

Please sign in to comment.