Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP8.0에서 in_array 오류 #8

Open
nubihub opened this issue Mar 10, 2021 · 4 comments
Open

PHP8.0에서 in_array 오류 #8

nubihub opened this issue Mar 10, 2021 · 4 comments
Labels

Comments

@nubihub
Copy link

nubihub commented Mar 10, 2021

게시판 스킨 설정의 '목록형 설정' 카테고리에서 '모바일형 사용(기본)'으로 선택되어 있을 경우 PC환경에서는 괜찮은데 모바일 환경에서 접속하면 오류 발생하네요

TypeError #0 "in_array(): Argument #2 ($haystack) must be of type array, bool given" in modules/board/skins/sketchbook5/_list_m.html on line 67
TypeError #0 "in_array(): Argument #2 ($haystack) must be of type array, bool given" in modules/board/skins/sketchbook5/_list_m.html on line 78

@in_array('list_m',$mi->cmt_count) 를 in_array('list_m',$mi->cmt_count ?: []) 로 수정
@in_array('list_m',$mi->ext_img) 를 in_array('list_m',$mi->ext_img) ?: []) 로 수정

코어 history 보면서 따라해 본 거라 이래도 되나 싶긴 한데.. 수정한 뒤에는 정상적으로 작동되는 것 같아요

@nubihub
Copy link
Author

nubihub commented Mar 10, 2021

TypeError #0 "in_array(): Argument #2 ($haystack) must be of type array, bool given" in modules/board/skins/sketchbook5/_viewer.html on line 23
TypeError #0 "in_array(): Argument #2 ($haystack) must be of type array, bool given" in modules/board/skins/sketchbook5/_viewer.html on line 24
TypeError #0 "in_array(): Argument #2 ($haystack) must be of type array, bool given" in modules/board/skins/sketchbook5/_viewer.html on line 29
TypeError #0 "in_array(): Argument #2 ($haystack) must be of type array, bool given" in modules/board/skins/sketchbook5/_viewer.html on line 33

TypeError #0 "in_array(): Argument #2 ($haystack) must be of type array, bool given" in modules/board/skins/sketchbook5/_read.html on line 70
TypeError #0 "in_array(): Argument #2 ($haystack) must be of type array, bool given" in modules/board/skins/sketchbook5/_read.html on line 71
TypeError #0 "in_array(): Argument #2 ($haystack) must be of type array, bool given" in modules/board/skins/sketchbook5/_read.html on line 72

뷰어로 보기에서도 같은 오류 찾았어요
같은 방법으로 수정하니 작동됩니다!

@nubihub nubihub changed the title PHP8.0에서 _list_m.html 오류(in_array) PHP8.0에서 in_array 오류 Mar 10, 2021
@bjrambo bjrambo added the bug label Mar 11, 2021
@bjrambo
Copy link
Member

bjrambo commented Mar 11, 2021

제보 감사합니다.

@bjrambo
Copy link
Member

bjrambo commented May 11, 2022

@bjrambo
Copy link
Member

bjrambo commented May 14, 2022

f137bb3

갤러리에서는 모든 워닝과 fatal 에러를 고쳤습니다. 다른 항목들도 차차 고쳐나가도록 하겠습니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants