From 469530b51caa1d4ec95141d4b42ea1141c33280e Mon Sep 17 00:00:00 2001 From: Mitan Omar <22119228+MitanOmar@users.noreply.github.com> Date: Tue, 26 Mar 2019 23:53:11 +0100 Subject: [PATCH] Update ucp.php display error msg only when it's not request --- ucp.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ucp.php b/ucp.php index cd077f5..59cf00d 100755 --- a/ucp.php +++ b/ucp.php @@ -909,10 +909,14 @@ switch (g('go')) //add your own code here // 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 + if($no_request): kleeja_err($lang['ERROR_NAVIGATATION']); + endif; break; }#end switch