MDL-42234 - Repositories: Fix undefined variable notice when no repositories are enabled.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user