From fdf4d83e02bb047e2fc76142286fc5dfac7a59dc Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Thu, 23 May 2024 13:45:32 -0400 Subject: [PATCH] Use else for micro-optimisation --- web/skins/classic/includes/functions.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/web/skins/classic/includes/functions.php b/web/skins/classic/includes/functions.php index c3c0b0e56..2cecee978 100644 --- a/web/skins/classic/includes/functions.php +++ b/web/skins/classic/includes/functions.php @@ -992,8 +992,7 @@ function xhtmlFooter() { if ( $basename == 'montage' ) { echo output_script_if_exists(array('assets/gridstack/dist/gridstack-all.js')); echo output_script_if_exists(array('assets/jquery.panzoom/dist/jquery.panzoom.js')); - } - if ( $basename == 'watch' || $basename == 'event') { + } else if ( $basename == 'watch' || $basename == 'event') { echo output_script_if_exists(array('assets/jquery.panzoom/dist/jquery.panzoom.js')); }