mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-10 14:02:12 +09:00
httpStatusCode 를 정수형으로 만들기
This commit is contained in:
parent
107996918e
commit
29507df48f
6 changed files with 12 additions and 12 deletions
|
|
@ -925,7 +925,7 @@ class ModuleHandler extends Handler
|
|||
$oMessageObject->dispMessage();
|
||||
|
||||
// display Error Page
|
||||
if($oMessageObject->getHttpStatusCode() && !in_array($oMessageObject->getHttpStatusCode(), array('200', '403')))
|
||||
if(!in_array($oMessageObject->getHttpStatusCode(), array(200, 403)))
|
||||
{
|
||||
$oMessageObject->setTemplateFile('http_status_code');
|
||||
}
|
||||
|
|
@ -1062,7 +1062,7 @@ class ModuleHandler extends Handler
|
|||
}
|
||||
|
||||
// Set http status code
|
||||
if($this->httpStatusCode && (!$oModule->getHttpStatusCode() || $oModule->getHttpStatusCode() == '200'))
|
||||
if($this->httpStatusCode && $oModule->getHttpStatusCode() === 200)
|
||||
{
|
||||
$oModule->setHttpStatusCode($this->httpStatusCode);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue