From 625d5f3d765917fc086703b1cd1e88ce267bcb88 Mon Sep 17 00:00:00 2001 From: dingguodong Date: Wed, 3 May 2023 14:32:42 +0800 Subject: [PATCH] * The control::locate return 1 always. --- framework/base/control.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; } }