Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Database can't save connect instances because var "$group" default is NULL #466

Closed
s524797336 opened this issue Apr 17, 2017 · 0 comments
Closed

Comments

@s524797336
Copy link

s524797336 commented Apr 17, 2017

See system/Database/Config.php line 82 and 108

If we always use
$this->db = \Config\Database::connect();
To connect db
`//line 82
if ($getShared && isset(self::$instances[$group]))
{
return self::$instances[$group];
}
//other code

//line 108
self::$instances[$group] =& $connection;`
This code will never save instance because $group is NULL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant