[0] empty sno
2025-01-30 04:43:45
/home_new/daprskr/web/module/Component/Board/Star.php (586 line)
0575 $data = []; |
0576 $appendWhere[] = "b.isDelete = 'n'"; |
0577 $rows = $this->select('select', $search, $appendWhere, 'all'); |
0578 $data['list'] = $rows; |
0579 return $data['list']; |
0580 } |
0581 |
0582 |
0583 public function selectOne($sno) |
0584 { |
0585 if (!$sno) { |
0586 throw new \Exception('empty sno'); |
0587 } |
0588 $this->set('sno', $sno); |
0589 |
0590 $arrBind = []; |
0591 $query = "SELECT b.* FROM " . DB_BOARD_STAR . " as b "; |
0592 $query .= " WHERE b.sno = ? and isDelete ='n'"; |
0593 |
0594 |
0595 $this->db->bind_param_push($arrBind, 'i', $sno); |
0596 $row = $this->db->query_fetch($query, $arrBind)[0]; |
0597 unset($arrBind); |
0598 if ($row['isDelete'] == 'y') { |