From 24ee2541ee3ebdfc88d789fbb89dd222bb71c85c Mon Sep 17 00:00:00 2001 From: Neil Lathwood Date: Thu, 9 Oct 2014 16:47:11 +0000 Subject: [PATCH] Defining output array as per scrutinizer --- html/includes/api_functions.inc.php | 1 + 1 file changed, 1 insertion(+) diff --git a/html/includes/api_functions.inc.php b/html/includes/api_functions.inc.php index e3de88d37..a38fab55c 100644 --- a/html/includes/api_functions.inc.php +++ b/html/includes/api_functions.inc.php @@ -483,6 +483,7 @@ function show_endpoints() { global $config; $app = \Slim\Slim::getInstance(); $routes = $app->router()->getNamedRoutes(); + $output = array(); foreach($routes as $route) { $output[$route->getName()] = $config['base_url'].$route->getPattern(); }