From 19625d17bb476c0f1c3cbef0a1373bc5c877cbf0 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Mon, 12 May 2014 12:34:42 +0100 Subject: [PATCH] Fix notice when not scanning any files Closes #5465 --- includes/admin/views/html-admin-page-status-report.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/admin/views/html-admin-page-status-report.php b/includes/admin/views/html-admin-page-status-report.php index 95f68be650c..8655e70faf9 100644 --- a/includes/admin/views/html-admin-page-status-report.php +++ b/includes/admin/views/html-admin-page-status-report.php @@ -457,10 +457,12 @@ WC()->plugin_path() . '/templates/' ) ); + $scanned_files = array(); $found_files = array(); - foreach ( $template_paths as $plugin_name => $template_path ) + foreach ( $template_paths as $plugin_name => $template_path ) { $scanned_files[ $plugin_name ] = $this->scan_template_files( $template_path ); + } foreach ( $scanned_files as $plugin_name => $files ) { foreach ( $files as $file ) {