Skip to content
Permalink
Browse files

Stating migration to PDO, a driver is available if listed as availabl…

…e by PDO
  • Loading branch information...
lorenzo committed Oct 14, 2010
1 parent 5c025d0 commit efbefeb71a969f563aa83ba9d746e2ac82cd6dd6
Showing with 1 addition and 1 deletion.
  1. +1 −1 cake/libs/model/datasources/dbo/dbo_mysql.php
@@ -574,7 +574,7 @@ function connect() {
* @return boolean
*/
function enabled() {
return extension_loaded('mysql');
return in_array('mysql', PDO::getAvailableDrivers());
}
/**
* Disconnects from database.

0 comments on commit efbefeb

Please sign in to comment.
You can’t perform that action at this time.