Conditions | 3 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
61 | public function get ($poll, $user = false) { |
||
62 | if (is_array($poll)) { |
||
63 | return array_map_arguments([$this, 'get'], $poll, $user); |
||
64 | } |
||
65 | return $this->db()->qfs( |
||
66 | "SELECT `option` |
||
67 | FROM `$this->table` |
||
68 | WHERE |
||
69 | `id` = '%d' AND |
||
70 | `user` = '%d' |
||
71 | LIMIT 1", |
||
72 | $poll, |
||
73 | $user ?: User::instance()->id |
||
74 | ); |
||
77 |