Skip to content
Browse files

MDL-42234 - Repositories: Fix undefined variable notice when no repos…

…itories are enabled.
  • Loading branch information...
1 parent 945aa97 commit a8d816982a317b12e1e4141f9d605afbe7e88436 @abgreeve abgreeve committed Oct 15, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 admin/repository.php
View
4 admin/repository.php
@@ -288,9 +288,9 @@ function repository_action_url($repository) {
// Get list of used plug-ins
$instances = repository::get_types();
+ // Array to store plugins being used
+ $alreadyplugins = array();
if (!empty($instances)) {
- // Array to store plugins being used
- $alreadyplugins = array();
$totalinstances = count($instances);
$updowncount = 1;
foreach ($instances as $i) {

0 comments on commit a8d8169

Please sign in to comment.
Something went wrong with that request. Please try again.