File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
interface/web/dashboard/dashlets Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -106,8 +106,9 @@ function show() {
106106 $ tpl = new tpl ;
107107 $ tpl ->newTemplate ("dashlets/templates/limits.htm " );
108108
109+ $ wb = array ();
109110 $ lng_file = 'lib/lang/ ' .$ _SESSION ['s ' ]['language ' ].'_dashlet_limits.lng ' ;
110- include ($ lng_file );
111+ if ( is_file ( $ lng_file )) include ($ lng_file );
111112 $ tpl ->setVar ($ wb );
112113
113114 if ($ app ->auth ->is_admin ()) {
Original file line number Diff line number Diff line change @@ -11,8 +11,9 @@ function show() {
1111 $ tpl = new tpl ;
1212 $ tpl ->newTemplate ("dashlets/templates/modules.htm " );
1313
14+ $ wb = array ();
1415 $ lng_file = 'lib/lang/ ' .$ _SESSION ['s ' ]['language ' ].'_dashlet_modules.lng ' ;
15- include ($ lng_file );
16+ if ( is_file ( $ lng_file )) include ($ lng_file );
1617 $ tpl ->setVar ($ wb );
1718
1819 /*
You can’t perform that action at this time.
0 commit comments