mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 09:48:40 +00:00
Fix status return
This commit is contained in:
parent
ebab71704a
commit
6bf025ea81
|
|
@ -117,7 +117,11 @@ class Header extends HeaderAbstract
|
|||
*/
|
||||
public static function getStatusCode() : int
|
||||
{
|
||||
return \http_response_code();
|
||||
if($this->status === 0) {
|
||||
$this->status = \http_response_code();
|
||||
}
|
||||
|
||||
return $this->status;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -352,4 +356,4 @@ class Header extends HeaderAbstract
|
|||
$this->set('Retry-After', 'Retry-After: 300');
|
||||
\http_response_code(503);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user