$start = array_search($ext_ver, $history);
// And load SQL queries in order of version history
- for ($idx = ($start + 1); $idx < sizeof($history); $idx++) {
+ for ($idx = ($start + 1); $idx < count($history); $idx++) {
// Set extension version
$GLOBALS['cache_array']['update_ver'][$ext_name] = $history[$idx];