diff options
| author | Damien Regad <dregad@mantisbt.org> | 2019-08-23 16:20:48 +0200 |
|---|---|---|
| committer | Damien Regad <dregad@mantisbt.org> | 2019-08-23 16:26:31 +0200 |
| commit | 23cfd2480e3c77b5928432c10bda69b252efcd2c (patch) | |
| tree | 05f1ccd6ecafef910db12019ae7bb69ae9954447 | |
| parent | 2b09c6d448267b32534b16a9aa4e9b2e62db0ed0 (diff) | |
| download | adodb-23cfd2480e3c77b5928432c10bda69b252efcd2c.tar.gz adodb-23cfd2480e3c77b5928432c10bda69b252efcd2c.tar.bz2 adodb-23cfd2480e3c77b5928432c10bda69b252efcd2c.zip | |
PHP 7.4: fix deprecated usage of join()
Passing parameters to implode() in reverse order is deprecated
Fixes #547
| -rw-r--r-- | docs/changelog.md | 2 | ||||
| -rw-r--r-- | pear/Auth/Container/ADOdb.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/changelog.md b/docs/changelog.md index 5b36f3ed..947a362b 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -11,7 +11,7 @@ Older changelogs: - pdo/mysql: remove extraneous comma in $fmtTimeStamp. #531 - active record: Use ADODB_ASSOC_CASE constant. #536 - session: Remove session_module_name('user') calls (PHP 7.2 compatibility). #449 - +- PHP 7.4 compatibility: fix deprecated usage of join() #547 ## 5.20.14 - 06-Jan-2019 diff --git a/pear/Auth/Container/ADOdb.php b/pear/Auth/Container/ADOdb.php index f500e25c..916d42c2 100644 --- a/pear/Auth/Container/ADOdb.php +++ b/pear/Auth/Container/ADOdb.php @@ -199,7 +199,7 @@ class Auth_Container_ADOdb extends Auth_Container /* Include additional fields if they exist */ if(!empty($this->options['db_fields'])){ if(is_array($this->options['db_fields'])){ - $this->options['db_fields'] = join($this->options['db_fields'], ', '); + $this->options['db_fields'] = join(', ', $this->options['db_fields'], ); } $this->options['db_fields'] = ', '.$this->options['db_fields']; } |
