Current time: 03-18-2010, 05:58 AM Hello There, Guest! (LoginRegister)


 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[F] showthread.php: unused $options arrays
08-07-2008, 12:09 AM
Post: #1
[F] showthread.php: unused $options arrays
Three places in showthread where an $options array is defined but not used:

PHP Code:
// Get the thread details from the database.
$options = array(
    
"limit" => 1
);

$thread get_thread($mybb->input['tid']); 

action=nextnewest
PHP Code:
$options = array(
    
"limit_start" => 0,
    
"limit" => 1,
    
"order_by" => "dateline",
    
"order_dir" => "desc"
);
$query $db->simple_select('posts''pid'"tid={$nextthread['tid']}"); 

action=nextoldest
PHP Code:
$options = array(
    
"limit_start" => 0,
    
"limit" => 1,
    
"order_by" => "dateline",
    
"order_dir" => "desc"
);
$query $db->simple_select("posts""pid""tid=".$nextthread['tid']); 
Visit this user's website Find all posts by this user
08-07-2008, 12:41 AM
Post: #2
[F] showthread.php: unused $options arrays
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: ryangordon.png]
My Blog - My Mods
Visit this user's website Find all posts by this user


Forum Jump: