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

Commit

Permalink
Remove type strict comparison for mount_env_passwd option.
Browse files Browse the repository at this point in the history
  • Loading branch information
Infthitbox committed Jan 29, 2015
1 parent d129489 commit 2bf555f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/plugins/meta.mount/class.FilesystemMounter.php
Expand Up @@ -136,11 +136,11 @@ public function mountFS()

$cmd = ($MOUNT_SUDO? "sudo ": ""). "mount -t " .$MOUNT_TYPE. (empty( $MOUNT_OPTIONS )? " " : " -o " .$MOUNT_OPTIONS. " " ) .$UNC_PATH. " " .$MOUNT_POINT;
$res = null;
if($this->getOption("MOUNT_ENV_PASSWD") === true){
if($this->getOption("MOUNT_ENV_PASSWD") == true){
putenv("PASSWD=$password");
}
system($cmd, $res);
if($this->getOption("MOUNT_ENV_PASSWD") === true){
if($this->getOption("MOUNT_ENV_PASSWD") == true){
putenv("PASSWD=");
}
if($res === null){
Expand Down

0 comments on commit 2bf555f

Please sign in to comment.