diff options
author | Andrey Andreev <narf@devilix.net> | 2021-12-20 15:25:35 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2021-12-20 15:25:35 +0100 |
commit | bf867137771c18f263bfab54cce258c27b91d2e8 (patch) | |
tree | 09a0da622f9aa4c6a366249cf5491939d2853916 /system/libraries/Ftp.php | |
parent | 52e2fe01d2819110162b154b2785df88149f3a3b (diff) |
ftp_connect() returns an FTP\Connection object instead of resource in PHP 8.1
Diffstat (limited to 'system/libraries/Ftp.php')
-rw-r--r-- | system/libraries/Ftp.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Ftp.php b/system/libraries/Ftp.php index 61fa80c0f..92644153a 100644 --- a/system/libraries/Ftp.php +++ b/system/libraries/Ftp.php @@ -202,7 +202,7 @@ class CI_FTP { */ protected function _is_conn() { - if ( ! is_resource($this->conn_id)) + if ($this->conn_id !== FALSE) { if ($this->debug === TRUE) { |