Don't invoke clearFilteredParameters for empty array

pull/66/head 1.23.1
Paal Joergensen 2019-08-15 21:15:55 +02:00
parent 8ceb77e881
commit 7bc8666f30
1 changed files with 4 additions and 1 deletions

View File

@ -1647,8 +1647,11 @@ class H5PStorage {
$library_ids[] = $library['libraryId'];
}
// Make sure libraries dependencies, parameter filtering and export files gets regenerated for all content who uses these libraries.
if (!empty($library_ids)) {
$this->h5pF->clearFilteredParameters($library_ids);
}
// Tell the user what we've done.
if ($newOnes && $oldOnes) {