mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-04 15:57:45 +02:00
[ticket/17139] Fix more PHP fatal errors
PHPBB3-17139
This commit is contained in:
@@ -832,6 +832,11 @@ class ftp_fsock extends transfer
|
|||||||
*/
|
*/
|
||||||
function _send_command($command, $args = '', $check = true)
|
function _send_command($command, $args = '', $check = true)
|
||||||
{
|
{
|
||||||
|
if (!$this->connection)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (!empty($args))
|
if (!empty($args))
|
||||||
{
|
{
|
||||||
$command = "$command $args";
|
$command = "$command $args";
|
||||||
@@ -921,6 +926,11 @@ class ftp_fsock extends transfer
|
|||||||
*/
|
*/
|
||||||
function _close_data_connection()
|
function _close_data_connection()
|
||||||
{
|
{
|
||||||
|
if (!$this->connection)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
return @fclose($this->data_connection);
|
return @fclose($this->data_connection);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -930,6 +940,11 @@ class ftp_fsock extends transfer
|
|||||||
*/
|
*/
|
||||||
function _check_command($return = false)
|
function _check_command($return = false)
|
||||||
{
|
{
|
||||||
|
if (!$this->connection)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
$response = '';
|
$response = '';
|
||||||
|
|
||||||
do
|
do
|
||||||
|
Reference in New Issue
Block a user