Commit 8873a7d0 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review

Merge "Removing unnecessary array_diff"

parents 8c185c67 6ca2821a
......@@ -2948,7 +2948,7 @@ function progressbar_sideblock($preview=false) {
// Without locked ones (site locked and institution locked)
$sitelocked = (array) get_column('institution_locked_profile_field', 'profilefield', 'name', 'mahara');
$instlocked = (array) get_column('institution_locked_profile_field', 'profilefield', 'name', $institution);
$locked = array_merge($sitelocked, $instlocked);
$locked = $sitelocked + $instlocked;
foreach ($locked as $l) {
unset($counting["progressbaritem_internal_{$l}"]);
}
......@@ -2981,8 +2981,6 @@ function progressbar_sideblock($preview=false) {
}
$progressbaritems = artefact_get_progressbar_items($onlytheseplugins);
$progressbaritems = array_diff($progressbaritems, $locked);
// Get the data link about every item
foreach ($progressbaritems as $pluginname => $itemlist) {
foreach ($itemlist as $artefactname => $item) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment