Code Duplication    Length = 5-7 lines in 2 locations

php/elFinderVolumeMySQL.class.php 1 location

@@ 139-143 (lines=5) @@
136
		parent::configure();
137
138
		if (($tmp = $this->options['tmpPath'])) {
139
			if (!file_exists($tmp)) {
140
				if (@mkdir($tmp)) {
141
					@chmod($tmp, $this->options['tmbPathMode']);
142
				}
143
			}
144
			
145
			$this->tmpPath = is_dir($tmp) && is_writable($tmp) ? $tmp : false;
146
		}

php/elFinderVolumeDriver.class.php 1 location

@@ 611-617 (lines=7) @@
608
		// set thumbnails path
609
		$path = $this->options['tmbPath'];
610
		if ($path) {
611
			if (!file_exists($path)) {
612
				if (@mkdir($path)) {
613
					chmod($path, $this->options['tmbPathMode']);
614
				} else {
615
					$path = '';
616
				}
617
			} 
618
			
619
			if (is_dir($path) && is_readable($path)) {
620
				$this->tmbPath = $path;