array_merge 대신 + 기호로 충분한 경우(dictionary) +로 변경함.
This commit is contained in:
+1
-1
@@ -13,7 +13,7 @@ $defaultPost = [
|
||||
'neutralView' => false,
|
||||
'showMe' => true
|
||||
];
|
||||
$post = array_merge($defaultPost, WebUtil::parseJsonPost());
|
||||
$post = WebUtil::parseJsonPost() + $defaultPost;
|
||||
|
||||
if(!$session->isLoggedIn() || !$session->generalID){
|
||||
$post['neutralView'] = true;
|
||||
|
||||
Reference in New Issue
Block a user