Commit c133f5dfae4a23921eec338202bf883a724d15a0

Authored by ziqiang
1 parent 136863d8

captcha 7.x-1.3

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