[0] empty sno
2025-04-02 06:49:37
/home_new/daprskr/web/module/Component/Board/Event.php (787 line)
0776 $data = []; |
0777 $appendWhere[] = "b.isDelete = 'n'"; |
0778 $rows = $this->select('select', $search, $appendWhere, 'all'); |
0779 $data['list'] = $rows; |
0780 return $data['list']; |
0781 } |
0782 |
0783 |
0784 public function selectOne($sno) |
0785 { |
0786 if (!$sno) { |
0787 throw new \Exception('empty sno'); |
0788 } |
0789 $this->set('sno', $sno); |
0790 |
0791 $arrBind = []; |
0792 $query = "SELECT b.* FROM " . DB_BOARD_EVENT . " as b "; |
0793 $query .= " WHERE b.sno = ? and isDelete ='n'"; |
0794 |
0795 |
0796 $this->db->bind_param_push($arrBind, 'i', $sno); |
0797 $row = $this->db->query_fetch($query, $arrBind)[0]; |
0798 $row['image'] = $this->getImageFiles($sno); |
0799 $row['keyword'] = explode(STR_DIVISION, $row['keyword']); |