We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1335033 commit 742b00bCopy full SHA for 742b00b
1 file changed
src/Cartalyst/Sentry/Facades/CI/Sentry.php
@@ -65,7 +65,8 @@ public static function createSentry()
65
$ci->load->database();
66
67
// Let's connect and get the PDO instance
68
- $pdo = $ci->db->db_pconnect();
+ $method = $ci->db->pconnect ? 'db_pconnect' : 'db_connect';
69
+ $pdo = $ci->db->{$method}();
70
71
// Validate PDO
72
if ( ! $pdo instanceof PDO)
0 commit comments