Skip to content

Commit

Permalink
updated text captcha
Browse files Browse the repository at this point in the history
fixes #479
  • Loading branch information
Bersthennmaco committed May 26, 2020
1 parent 9ffa1b9 commit 19f23ef
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions wbce/include/captcha/captchas/text.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@

// get questions and answers
$text_qa = '';
$table = TABLE_PREFIX . 'mod_captcha_control';
if ($query = $database->query("SELECT ct_text FROM $table")) {
//$table = TABLE_PREFIX . 'mod_captcha_control';
$table = TABLE_PREFIX . 'settings';
if ($query = $database->query("SELECT value FROM $table WHERE name = 'ct_text'")) {
$data = $query->fetchRow();
$text_qa = $data['ct_text'];
$text_qa = $data['value'];
}
$content = explode("\n", $text_qa);

Expand Down

0 comments on commit 19f23ef

Please sign in to comment.