Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Ensure last version is numeric
Signed-off-by: Michal Čihař <michal@cihar.com>
  • Loading branch information
nijel committed Jul 12, 2016
1 parent 76b5dd2 commit 6e8a1c0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions libraries/tracking.lib.php
Expand Up @@ -375,9 +375,7 @@ function PMA_getHtmlForTableVersionDetails(
function PMA_getTableLastVersionNumber($sql_result)
{
$maxversion = $GLOBALS['dbi']->fetchArray($sql_result);
$last_version = $maxversion['version'];

return $last_version;
return intval($maxversion['version']);
}

/**
Expand Down

0 comments on commit 6e8a1c0

Please sign in to comment.