[0] empty sno
2025-11-01 13:01:15
/home_new/daprskr/web/module/Component/Board/Review.php (1154 line)
| 01143 $data = []; |
| 01144 $appendWhere[] = "b.isDelete = 'n'"; |
| 01145 $rows = $this->select('select', $search, $appendWhere, 'all'); |
| 01146 $data['list'] = $rows; |
| 01147 return $data['list']; |
| 01148 } |
| 01149 |
| 01150 |
| 01151 public function selectOne($sno) |
| 01152 { |
| 01153 if (!$sno) { |
| 01154 throw new \Exception('empty sno'); |
| 01155 } |
| 01156 $this->set('sno', $sno); |
| 01157 |
| 01158 $arrBind = []; |
| 01159 $query = "SELECT b.* FROM " . DB_BOARD_REVIEW . " as b "; |
| 01160 $query .= " WHERE b.sno = ? and isDelete ='n'"; |
| 01161 |
| 01162 |
| 01163 $this->db->bind_param_push($arrBind, 'i', $sno); |
| 01164 $row = $this->db->query_fetch($query, $arrBind)[0]; |
| 01165 $row['mallDisplay'] = explode(',', $row['mallDisplay']); |
| 01166 $row['file'] = $this->getReviewFiles($sno); |