Skip to content

Commit

Permalink
Fixed mysql version query
Browse files Browse the repository at this point in the history
  • Loading branch information
smeyer-ilias committed Nov 23, 2015
1 parent 3721bf8 commit 70b3217
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Services/Database/classes/class.ilDBMySQL.php
Original file line number Diff line number Diff line change
Expand Up @@ -430,11 +430,12 @@ function isMysql4_1OrHigher()
* - classes/class.ilDB.php
* - setup/classes/class.ilClient.php
*/
function isMysql5_6OrHigher()
public function isMysql5_6OrHigher()
{
$version = explode(".", $this->getDBVersion());
if ((int)$version[0] >= 5 ||
((int)$version[0] == 5 && (int)$version[1] >= 6))
if(
(int) $version[0] > 5 ||
((int) $version[0] == 5 && (int) $version[1] >= 6))
{
return true;
}
Expand Down

0 comments on commit 70b3217

Please sign in to comment.