HFP-2183 Default library.metadata property shall be 1

HFP-2095-Fix-table-styling
Paal Joergensen 2018-09-18 15:02:12 +02:00
parent d391d486c9
commit 3566ac4141
2 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,7 @@ class H5PDevelopment {
// Save/update library.
$library['libraryId'] = $this->h5pF->getLibraryId($library['machineName'], $library['majorVersion'], $library['minorVersion']);
if (!isset($library['metadata'])) {
$library['metadata'] = 0;
$library['metadata'] = 1;
}
$this->h5pF->saveLibraryData($library, $library['libraryId'] === FALSE);

View File

@ -1442,7 +1442,7 @@ class H5PStorage {
// Save library meta data
if (!isset($library['metadata'])) {
$library['metadata'] = 0;
$library['metadata'] = 1;
}
$this->h5pF->saveLibraryData($library, $new);