Project

General

Profile

« Previous | Next » 

Revision 383

Added by Matthias almost 18 years ago

Fixed Captcha error when adding comment to news (#358)

View differences:

comment.php
43 43
$database = new database();
44 44

  
45 45
$query_settings = $database->query("SELECT use_captcha FROM ".TABLE_PREFIX."mod_news_settings WHERE section_id = '".SECTION_ID."'");
46
$use_captcha=$query_settings['use_captcha'];
47
if($use_captcha) {
46
$use_captcha = $query_settings->fetchRow();
47
if($use_captcha['use_captcha']) {
48 48
	$_SESSION['captcha'] = '';
49 49
	for($i = 0; $i < 5; $i++) {
50 50
		$_SESSION['captcha'] .= rand(0,9);

Also available in: Unified diff