From 437598aa8e481a7f14cc1536d5fb4faa4324cc7f Mon Sep 17 00:00:00 2001 From: Frode Petterson Date: Mon, 7 Mar 2016 10:58:39 +0100 Subject: [PATCH] Use key to avoid bugs --- h5p.classes.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/h5p.classes.php b/h5p.classes.php index fc8980c..00f5700 100644 --- a/h5p.classes.php +++ b/h5p.classes.php @@ -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; } }