From 8f5fea965ab7590ba6d7124df751594e7c0850e4 Mon Sep 17 00:00:00 2001 From: Adrian Greeve Date: Thu, 10 Oct 2013 10:18:36 +0800 Subject: [PATCH] MDL-42234 - Repositories: Fix undefined variable notice when no repositories are enabled. --- admin/repository.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/repository.php b/admin/repository.php index 20e6f293fff..e9749aa480e 100644 --- a/admin/repository.php +++ b/admin/repository.php @@ -294,9 +294,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) {