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

Commit

Permalink
Fix 5.4 syntax
Browse files Browse the repository at this point in the history
Remove creation of .ajxp_mount as it's not need since previous commit.
  • Loading branch information
cdujeu committed Sep 14, 2015
1 parent 6de418e commit 73cb845
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/src/plugins/meta.mount/class.FilesystemMounter.php
Expand Up @@ -103,7 +103,10 @@ protected function isAlreadyMounted()
list($user, $password) = $this->getCredentials();
$MOUNT_POINT = $this->getOption("MOUNT_POINT", $user, $password);
if( is_dir($MOUNT_POINT) ){
if( stat(dirname($MOUNT_POINT))[0] == stat($MOUNT_POINT)[0] ){
$statParent = stat(dirname($MOUNT_POINT));
$statMount = stat($MOUNT_POINT);
// Compare device id's
if( $statParent[0] == $statMount[0] ){
return false;
}else{
return true;
Expand Down Expand Up @@ -169,9 +172,6 @@ public function mountFS()
if (!$success) {
throw new Exception("Error while mounting file system!");
} else {
if (!is_file($MOUNT_POINT."/.ajxp_mount")) {
@file_put_contents($MOUNT_POINT."/.ajxp_mount", "");
}
if ($recycle !== false && !is_dir($recycle)) {
@mkdir($recycle, 0755);
}
Expand Down

0 comments on commit 73cb845

Please sign in to comment.