mirror of
https://github.com/kleeja-official/kleeja.git
synced 2025-12-17 05:29:41 +01:00
Update ucp.php
display error msg only when it's not request
This commit is contained in:
4
ucp.php
4
ucp.php
@@ -909,10 +909,14 @@ switch (g('go'))
|
|||||||
//add your own code here
|
//add your own code here
|
||||||
//
|
//
|
||||||
default:
|
default:
|
||||||
|
|
||||||
|
$no_request = true;
|
||||||
|
|
||||||
is_array($plugin_run_result = Plugins::getInstance()->run('default_usrcp_page', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
|
is_array($plugin_run_result = Plugins::getInstance()->run('default_usrcp_page', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
|
||||||
|
|
||||||
|
if($no_request):
|
||||||
kleeja_err($lang['ERROR_NAVIGATATION']);
|
kleeja_err($lang['ERROR_NAVIGATATION']);
|
||||||
|
endif;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}#end switch
|
}#end switch
|
||||||
|
|||||||
Reference in New Issue
Block a user