deprecation
-
Hello,
I’m exploring the plugin in php 8.3 and found the following issue:
Deprecated: Automatic conversion of false to array is deprecated in plugins/rvg-optimize-database/rvg-optimize-database.php on line?208function odb_load_options() { // GET OPTIONS $this->odb_rvg_options = $this->odb_multisite_obj->odb_ms_get_option('odb_rvg_options'); if(!isset($this->odb_rvg_options['version'])) // THIS VERSION IS FROM BEFORE 4.0: CONVERT OPTIONS $this->odb_convert_options(); if(!isset($this->odb_rvg_options['adminbar'])) $this->odb_rvg_options['adminbar'] = 'N';
The code needs to be updated to (first time odb_ms_get_option returns false):
function odb_load_options() { // GET OPTIONS $this->odb_rvg_options = $this->odb_multisite_obj->odb_ms_get_option('odb_rvg_options', []);
Also please consider moving the development to github, this way people can submit issues and pull requests.
- The topic ‘deprecation’ is closed to new replies.