MDL-42234 - Repositories: Fix undefined variable notice when no repositories are enabled.

This commit is contained in:
Adrian Greeve
2013-10-15 10:40:23 +08:00
parent f8eff10319
commit 40a473d5e7
+2 -2
View File
@@ -295,9 +295,9 @@ if (($action == 'edit') || ($action == 'new')) {
// Get list of used plug-ins
$repositorytypes = repository::get_types();
// Array to store plugins being used
$alreadyplugins = array();
if (!empty($repositorytypes)) {
// Array to store plugins being used
$alreadyplugins = array();
$totalrepositorytypes = count($repositorytypes);
$updowncount = 1;
foreach ($repositorytypes as $i) {