mirror of
https://github.com/danog/tgseclib.git
synced 2025-01-22 05:51:20 +01:00
Make Net_SSH2::isConnected() return a boolean instead of int.
This commit is contained in:
parent
cc64ef9d3f
commit
678d0cc792
@ -2654,11 +2654,12 @@ class Net_SSH2
|
||||
/**
|
||||
* Is the connection still active?
|
||||
*
|
||||
* @return boolean
|
||||
* @access public
|
||||
*/
|
||||
function isConnected()
|
||||
{
|
||||
return $this->bitmap & NET_SSH2_MASK_CONNECTED;
|
||||
return (bool) ($this->bitmap & NET_SSH2_MASK_CONNECTED);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user