Skip to content

Conversation

@KimTom89
Copy link
Contributor

@KimTom89 KimTom89 commented Aug 2, 2022

1. number_format 출력 이후 int형 선언으로 인해 재고 출력 오류
재고오류

2. is_int($sum['cnt']) 결과가 항상 false로 리턴되는 오류

  • 데이터베이스에서 조회 후 출력되는 결과 값은 String 형식이기 때문에 정수형을 체크하는 is_int는 항상 false로 리턴된다.

3. is_int함수가 특정부분에만 적용된 오류

  • 위의 2번과 함께 수정

- is_int 함수가 장바구니구매에만 추가되어있음.
- $sum['cnt']는 string 형태로 반환, is_int($sum['cnt'])는 항상 false 리턴
- 항상 int형이 되도록 (int)$sum['cnt']로 수정
kkigomi added a commit to kkigomi/gnuboard5 that referenced this pull request Jul 12, 2024
…ustomui

refactor(customui): 커스텀UI 마크업 분리
kkigomi pushed a commit to kkigomi/gnuboard5 that referenced this pull request Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant