File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1940,18 +1940,18 @@ function update($event_name, $data) {
19401940 }
19411941
19421942 //* Remove the AWstats configuration file
1943- if ($ data ['old ' ]['stats_type ' ] == 'awstats ' ) {
1944- $ this ->awstats_delete ($ data , $ web_config );
1943+ if ($ data ['old ' ]['stats_type ' ] == ' awstats ' && $ data [ ' new ' ][ ' stats_type ' ] ! = 'awstats ' ) {
1944+ $ this ->awstats_delete ($ data , $ web_config );
19451945 }
19461946
19471947 //* Remove the GoAccess configuration file
1948- if ($ data ['old ' ]['stats_type ' ] == 'goaccess ' ) {
1948+ if ($ data ['old ' ]['stats_type ' ] == 'goaccess ' && $ data [ ' new ' ][ ' stats_type ' ] != ' goaccess ' ) {
19491949 $ this ->goaccess_delete ($ data , $ web_config );
19501950 }
19511951
19521952 //* Remove the Webalizer configuration file
1953- if ($ data ['old ' ]['stats_type ' ] == 'webalizer ' ) {
1954- $ this ->webalizer_delete ($ data , $ web_config );
1953+ if ($ data ['old ' ]['stats_type ' ] == ' webalizer ' && $ data [ ' new ' ][ ' stats_type ' ] ! = 'webalizer ' ) {
1954+ $ this ->webalizer_delete ($ data , $ web_config );
19551955 }
19561956
19571957 //* Remove Stats-Folder when Statistics set to none
You can’t perform that action at this time.
0 commit comments