Dependencies may be indexed differently

pull/17/head
Frode Petterson 2016-01-25 14:44:40 +01:00
parent 5eb0e0e14c
commit fb9a84e665
1 changed files with 1 additions and 2 deletions

View File

@ -1988,8 +1988,7 @@ class H5PCore {
$toHash = array(); $toHash = array();
// Use unique identifier for each library version // Use unique identifier for each library version
for ($i = 0, $s = count($dependencies); $i < $s; $i++) { foreach ($dependencies as $dep) {
$dep = $dependencies[$i];
$toHash[] = "{$dep['machineName']}-{$dep['majorVersion']}.{$dep['minorVersion']}.{$dep['patchVersion']}"; $toHash[] = "{$dep['machineName']}-{$dep['majorVersion']}.{$dep['minorVersion']}.{$dep['patchVersion']}";
} }