SergeyTsalkov/meekrodb — pull request #25 by loertel (2014-10-28 22:29:26+00:00)
Title: Set $mdb to null on disconnect in static class

If static DB::disconnect() is called and afterwards a DB::get() will be
called - No new DB object is created.

Useful when using in cli for reconnect - after loosing a connection -
ie:
if (!mysqli_ping(\DB::get())) {
\DB::disconnect();
\DB::get();
};