/** * Check if the connection to the database is active. * @return boolean */ static function isActive() { return DB::$globalConn->isActive(); }
/** * Check if the connection to the database is active. * @return boolean */ static function isActive() { if(DB::$globalConn) return DB::$globalConn->isActive(); else return false; }