Current time: 03-22-2010, 02:43 AM Hello There, Guest! (LoginRegister)


 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[F] SQL error in build_mass_mail_query()
08-07-2008, 12:18 AM
Post: #1
[F] SQL error in build_mass_mail_query()
File /inc/functions_massmail.php, function build_mass_mail_query

PHP Code:
switch($conditions[$direction_field])
{
    case 
"greater_than":
        
$direction ">";
        break;
    case 
"less_than":
        
$direction "<";
        break;
    default:
        
$direction "=";
}
$search_sql .= " AND u.{$search_field}{$direction_field}'".$db->escape_string_like($conditions[$search_field])."'"

The $direction variable is set up but never used... $direction_field is used instead, which causes an SQL error.
Visit this user's website Find all posts by this user
08-07-2008, 12:34 AM
Post: #2
[F] SQL error in build_mass_mail_query()
Thank you for your bug report.

This bug has been fixed in our internal code repository. Please note that the problem will not be fixed here until these forums are updated.

[Image: sig.php?mybb]
MyBB is on Facebook and Twitter
Hosting available, PM for details
Visit this user's website Find all posts by this user


Forum Jump: