Conditions | 1 |
Paths | 1 |
Total Lines | 5 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
42 | public static function db_survey_vote_get(&$user, $survey_id) { |
||
43 | $is_voted = classSupernova::$db->doSelectFetch("SELECT `survey_vote_id` FROM `{{survey_votes}}` WHERE survey_parent_id = {$survey_id} AND survey_vote_user_id = {$user['id']} FOR UPDATE;"); |
||
44 | |||
45 | return $is_voted; |
||
46 | } |
||
47 | |||
48 | } |