Showing
1 changed file
with
10 additions
and
1 deletions
| 1 | 1 | diff --git a/captcha.inc b/captcha.inc |
| 2 | -index 934d72f..036b14b 100644 | |
| 2 | +index 934d72f..8b42fc0 100644 | |
| 3 | 3 | --- a/captcha.inc |
| 4 | 4 | +++ b/captcha.inc |
| 5 | 5 | @@ -64,6 +64,7 @@ function captcha_set_form_id_setting($form_id, $captcha_type) { |
| ... | ... | @@ -40,3 +40,12 @@ index 934d72f..036b14b 100644 |
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | // If no setting is available in database for the given form, |
| 43 | +@@ -137,7 +141,7 @@ function captcha_get_captcha_points() { | |
| 44 | + $captcha_points = array(); | |
| 45 | + $result = db_select('captcha_points', 'cp')->fields('cp')->orderBy('form_id')->execute(); | |
| 46 | + foreach ($result as $captcha_point) { | |
| 47 | +- $captcha_points[] = $captcha_point; | |
| 48 | ++ $captcha_points[$captcha_point->form_id] = $captcha_point; | |
| 49 | + } | |
| 50 | + } | |
| 51 | + return $captcha_points; | ... | ... |
Please
register
or
login
to post a comment