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