Skip to content

Commit

Permalink
MDL-42234 - Repositories: Fix undefined variable notice when no repos…
Browse files Browse the repository at this point in the history
…itories are enabled.
  • Loading branch information
abgreeve committed Oct 15, 2013
1 parent 945aa97 commit a8d8169
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admin/repository.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -288,9 +288,9 @@ function repository_action_url($repository) {


// Get list of used plug-ins // Get list of used plug-ins
$instances = repository::get_types(); $instances = repository::get_types();
// Array to store plugins being used
$alreadyplugins = array();
if (!empty($instances)) { if (!empty($instances)) {
// Array to store plugins being used
$alreadyplugins = array();
$totalinstances = count($instances); $totalinstances = count($instances);
$updowncount = 1; $updowncount = 1;
foreach ($instances as $i) { foreach ($instances as $i) {
Expand Down

0 comments on commit a8d8169

Please sign in to comment.