Skip to content

Commit

Permalink
Merge pull request joomla#1477 from realityking/pdo
Browse files Browse the repository at this point in the history
Deal with the PDO class not being available.
  • Loading branch information
LouisLandry committed Aug 20, 2012
2 parents c600d0a + 42811ff commit 9f8a82c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
2 changes: 1 addition & 1 deletion libraries/joomla/database/driver/oracle.php
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ public function unlockTables()
*/
public static function isSupported()
{
return in_array('oci', PDO::getAvailableDrivers());
return class_exists('PDO') && in_array('oci', PDO::getAvailableDrivers());
}

/**
Expand Down
15 changes: 1 addition & 14 deletions libraries/joomla/database/driver/sqlite.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,6 @@ class JDatabaseDriverSqlite extends JDatabaseDriverPdo
*/
protected $nameQuote = '`';

/**
* Constructor.
*
* @param array $options List of options used to configure the connection
*
* @since 12.1
*/
public function __construct($options)
{
// Finalize initialisation
parent::__construct($options);
}

/**
* Destructor.
*
Expand Down Expand Up @@ -391,6 +378,6 @@ public function unlockTables()
*/
public static function isSupported()
{
return in_array('sqlite', PDO::getAvailableDrivers());
return class_exists('PDO') && in_array('sqlite', PDO::getAvailableDrivers());
}
}

0 comments on commit 9f8a82c

Please sign in to comment.