Skip to content

Commit

Permalink
Fix MySQL test.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Sep 25, 2017
1 parent 650f33e commit 54fc56f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion horde/lib/Test.php
Expand Up @@ -148,7 +148,8 @@ class Horde_Test
),
'mysql' => array(
'descrip' => 'MySQL Support',
'error' => 'The MySQL extension is only required if you want to use a MySQL database server for data storage. See the PHP documentation on how to enable MySQL support when compiling PHP.'
'error' => 'The MySQL extensions are only required if you want to use a MySQL database server for data storage. See the PHP documentation on how to enable MySQL support when compiling PHP.',
'function' => '_checkMysql'
),
'openssl' => array(
'descrip' => 'OpenSSL Support',
Expand Down Expand Up @@ -540,6 +541,13 @@ protected function _checkMongo()
return true;
}

/**
*/
protected function _checkMysql()
{
return extension_loaded('mysqli') || extension_loaded('pdo_mysql');
}

/**
*/
protected function _checkMemcache()
Expand Down

0 comments on commit 54fc56f

Please sign in to comment.