Use key to avoid bugs

pull/17/head
Frode Petterson 2016-03-07 10:58:39 +01:00
parent b42193729e
commit 437598aa8e
1 changed files with 2 additions and 3 deletions

View File

@ -2437,10 +2437,9 @@ class H5PCore {
$libs = $this->h5pF->loadLibraries();
foreach($libs as $library) {
foreach($libs as $libName => $library) {
foreach($library as $libVersion) {
$librariesInstalled[] = $libVersion->name.' '.$libVersion->major_version.'.'.$libVersion->minor_version.'.'.$libVersion->patch_version;
$librariesInstalled[] = $libName.' '.$libVersion->major_version.'.'.$libVersion->minor_version.'.'.$libVersion->patch_version;
}
}