Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit 73cb845

Browse files
committed
Fix 5.4 syntax
Remove creation of .ajxp_mount as it's not need since previous commit.
1 parent 6de418e commit 73cb845

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

core/src/plugins/meta.mount/class.FilesystemMounter.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,10 @@ protected function isAlreadyMounted()
103103
list($user, $password) = $this->getCredentials();
104104
$MOUNT_POINT = $this->getOption("MOUNT_POINT", $user, $password);
105105
if( is_dir($MOUNT_POINT) ){
106-
if( stat(dirname($MOUNT_POINT))[0] == stat($MOUNT_POINT)[0] ){
106+
$statParent = stat(dirname($MOUNT_POINT));
107+
$statMount = stat($MOUNT_POINT);
108+
// Compare device id's
109+
if( $statParent[0] == $statMount[0] ){
107110
return false;
108111
}else{
109112
return true;
@@ -169,9 +172,6 @@ public function mountFS()
169172
if (!$success) {
170173
throw new Exception("Error while mounting file system!");
171174
} else {
172-
if (!is_file($MOUNT_POINT."/.ajxp_mount")) {
173-
@file_put_contents($MOUNT_POINT."/.ajxp_mount", "");
174-
}
175175
if ($recycle !== false && !is_dir($recycle)) {
176176
@mkdir($recycle, 0755);
177177
}

0 commit comments

Comments
 (0)