File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ public function add_googleanalytics_configs($event)
8181 $ this ->user ->add_lang_ext ('phpbb/googleanalytics ' , 'googleanalytics_acp ' );
8282
8383 // Add a config to the settings mode, after board_timezone
84- if ($ event ['mode ' ] == 'settings ' && isset ($ event ['display_vars ' ]['vars ' ]['board_timezone ' ]))
84+ if ($ event ['mode ' ] === 'settings ' && isset ($ event ['display_vars ' ]['vars ' ]['board_timezone ' ]))
8585 {
8686 // Store display_vars event in a local variable
8787 $ display_vars = $ event ['display_vars ' ];
@@ -117,7 +117,7 @@ public function validate_googleanalytics_id($event)
117117 $ input = $ event ['cfg_array ' ]['googleanalytics_id ' ];
118118
119119 // Check if the validate test is for google_analytics
120- if (( $ event ['config_definition ' ]['validate ' ] == 'googleanalytics_id ' ) && ( $ input !== '' ) )
120+ if ($ input !== '' && $ event ['config_definition ' ]['validate ' ] === 'googleanalytics_id ' )
121121 {
122122 // Store the error and input event data
123123 $ error = $ event ['error ' ];
You can’t perform that action at this time.
0 commit comments