Skip to content
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.

Commit

Permalink
test #220: Check for the class name for MySQLi supporta
Browse files Browse the repository at this point in the history
  • Loading branch information
ercanozkaya committed Feb 3, 2016
1 parent 5245b92 commit 0eafb95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/plugins/system/koowa/koowa.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class PlgSystemKoowa extends JPlugin
public function __construct($subject, $config = array())
{
// Check if database type is MySQLi
if(JFactory::getApplication()->getCfg('dbtype') != 'mysqli')
if (!(JFactory::getDbo() instanceof JDatabaseDriverMysqli || JFactory::getDbo() instanceof JDatabaseMySQLi))
{
if (JFactory::getApplication()->getName() === 'administrator')
{
Expand Down

0 comments on commit 0eafb95

Please sign in to comment.