Errore:

Information: PHP notice in file /private/include/database/MySQLi.php (121): Array to string conversion

che corrisponde alla riga:

$error = str_replace(array(array_keys($tables), array_keys($fields)), array($this->tables, $this->fields), $error);


Attualmente ho modificato così per farlo funzionare, ma onestamente non mi piace:

Codice PHP:
            foreach ($this->tables as $name => $alias) {
                
$error str_replace($name$alias$error);
            }
            
            foreach (
$this->fields as $name => $alias) {
                
$error str_replace($name$alias$error);
            }