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

Notice: Undefined property: stdClass::$sort_index #2275

Closed
cydemo opened this issue Jan 19, 2024 · 0 comments
Closed

Notice: Undefined property: stdClass::$sort_index #2275

cydemo opened this issue Jan 19, 2024 · 0 comments
Labels
bug 버그로 확인된 사항 patch available 패치 있음 표시 (bug와 함께 사용)

Comments

@cydemo
Copy link

cydemo commented Jan 19, 2024

php 7.4에서 게시판의 act가 dispBoardTagList일 때 notice가 나왔습니다.

Notice: Undefined property: stdClass::$sort_index
modules/tag/tag.model.php:107
modules/board/board.view.php:716
classes/module/ModuleObject.class.php:753
classes/module/ModuleHandler.class.php:696
index.php:60

tag.model.php 파일의 해당 라인이
$args->count = $obj->sort_index;
로 되어 있는데, 옳은 방법인지 모르겠으나
$args->count = $obj->sort_index ?? 'count';
로 바꾸면 notice가 사라지더군요.
(물론 확신은 없어서 실사용 사이트에서는 원상복구했어요)

@kijin kijin added the bug 버그로 확인된 사항 label Jan 19, 2024
@kijin kijin added the patch available 패치 있음 표시 (bug와 함께 사용) label Jan 19, 2024
@kijin kijin closed this as completed in 40b3dcd Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 버그로 확인된 사항 patch available 패치 있음 표시 (bug와 함께 사용)
Projects
None yet
Development

No branches or pull requests

2 participants