diff --git a/admin/repository.php b/admin/repository.php index 1e991e4eff3..31fd40cc0c6 100644 --- a/admin/repository.php +++ b/admin/repository.php @@ -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) {