diff --git a/framework/base/control.class.php b/framework/base/control.class.php index 5d06407327..138173f590 100644 --- a/framework/base/control.class.php +++ b/framework/base/control.class.php @@ -1155,11 +1155,11 @@ class baseControl * * @param string $url the target url. * @access public - * @return void + * @return int */ - public function locate($url) + public function locate($url): int { header("location: $url"); - exit; + return 1; } }