Zeile 60 | Zeile 60 |
---|
$query = $db->simple_select("searchlog", "*", "sid='$sid'"); $search = $db->fetch_array($query);
|
$query = $db->simple_select("searchlog", "*", "sid='$sid'"); $search = $db->fetch_array($query);
|
if(!$search['sid'])
| if(empty($search['sid']))
|
{ error($lang->error_invalidsearch); }
| { error($lang->error_invalidsearch); }
|
Zeile 104 | Zeile 104 |
---|
break; case "lastpost": default:
|
break; case "lastpost": default:
|
if($search['resulttype'] == "threads")
| if(isset($search['resulttype']) && $search['resulttype'] == "threads")
|
{ $sortfield = "t.lastpost"; $sortby = "lastpost";
| { $sortfield = "t.lastpost"; $sortby = "lastpost";
|
Zeile 152 | Zeile 152 |
---|
// Work out if we have terms to highlight $highlight = "";
|
// Work out if we have terms to highlight $highlight = "";
|
if($search['keywords'])
| if(!empty($search['keywords']))
|
{ if($mybb->seo_support == true) {
| { if($mybb->seo_support == true) {
|
Zeile 190 | Zeile 190 |
---|
if(isset($mybb->cookies['mybb']['forumread'])) {
|
if(isset($mybb->cookies['mybb']['forumread'])) {
|
$forumsread = my_unserialize($mybb->cookies['mybb']['forumread']);
| $forumsread = my_unserialize($mybb->cookies['mybb']['forumread'], false);
|
} else {
| } else {
|
Zeile 246 | Zeile 246 |
---|
}
// Show search results as 'threads'
|
}
// Show search results as 'threads'
|
if($search['resulttype'] == "threads")
| if(isset($search['resulttype']) && $search['resulttype'] == "threads")
|
{ $threadcount = 0;
| { $threadcount = 0;
|
Zeile 473 | Zeile 473 |
---|
if($mybb->settings['threadreadcut'] > 0 && $mybb->user['uid'] && $thread['lastpost'] > $forum_read) {
|
if($mybb->settings['threadreadcut'] > 0 && $mybb->user['uid'] && $thread['lastpost'] > $forum_read) {
|
if($thread['lastread'])
| if(isset($thread['lastread']))
|
{ $last_read = $thread['lastread']; }
| { $last_read = $thread['lastread']; }
|
Zeile 723 | Zeile 723 |
---|
} else // Displaying results as posts {
|
} else // Displaying results as posts {
|
if(!$search['posts'])
| if(empty($search['posts']))
|
{ error($lang->error_nosearchresults); }
| { error($lang->error_nosearchresults); }
|