Skip to content

Commit bd74cfd

Browse files
authored
Merge pull request phpvirtualbox#72 from tom077/develop-SOAPfix
4 SOAP functions fixed
2 parents 4c639d4 + c84bf6b commit bd74cfd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

endpoints/lib/vboxServiceWrappers.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1966,7 +1966,7 @@ public function temporaryEjectDevice($arg_name, $arg_controllerPort, $arg_device
19661966
$request->name = $arg_name;
19671967
$request->controllerPort = $arg_controllerPort;
19681968
$request->device = $arg_device;
1969-
$request->temporaryEject = $arg_temporaryEject;
1969+
$request->temporaryEject = $arg_temporaryEject === null ? false : $arg_temporaryEject;
19701970
$response = $this->connection->__soapCall('IMachine_temporaryEjectDevice', array((array)$request));
19711971
return ;
19721972
}
@@ -1978,7 +1978,7 @@ public function nonRotationalDevice($arg_name, $arg_controllerPort, $arg_device,
19781978
$request->name = $arg_name;
19791979
$request->controllerPort = $arg_controllerPort;
19801980
$request->device = $arg_device;
1981-
$request->nonRotational = $arg_nonRotational;
1981+
$request->nonRotational = $arg_nonRotational === null ? false : $arg_nonRotational;
19821982
$response = $this->connection->__soapCall('IMachine_nonRotationalDevice', array((array)$request));
19831983
return ;
19841984
}
@@ -2002,7 +2002,7 @@ public function setHotPluggableForDevice($arg_name, $arg_controllerPort, $arg_de
20022002
$request->name = $arg_name;
20032003
$request->controllerPort = $arg_controllerPort;
20042004
$request->device = $arg_device;
2005-
$request->hotPluggable = $arg_hotPluggable;
2005+
$request->hotPluggable = $arg_hotPluggable === null ? false : $arg_hotPluggable;
20062006
$response = $this->connection->__soapCall('IMachine_setHotPluggableForDevice', array((array)$request));
20072007
return ;
20082008
}
@@ -2623,7 +2623,7 @@ public function takeSnapshot($arg_name, $arg_description, $arg_pause)
26232623
$request->_this = $this->handle;
26242624
$request->name = $arg_name;
26252625
$request->description = $arg_description;
2626-
$request->pause = $arg_pause;
2626+
$request->pause = $arg_pause === null ? true : $arg_pause;
26272627
$response = $this->connection->__soapCall('IMachine_takeSnapshot', array((array)$request));
26282628
return array(new IProgress ($this->connection, $response->returnval), (string)$response->id);
26292629
}

0 commit comments

Comments
 (0)