mirror of
https://github.com/nadrad/h-m-m.git
synced 2024-05-17 22:46:32 +02:00
search result to prev if there's no next
This commit is contained in:
parent
29ebb50698
commit
6220338024
13
h-m-m
13
h-m-m
|
@ -1234,7 +1234,8 @@ function search(&$mm)
|
|||
return;
|
||||
}
|
||||
|
||||
next_search_result($mm);
|
||||
if (!next_search_result($mm))
|
||||
previous_search_result($mm);
|
||||
}
|
||||
|
||||
function previous_search_result(&$mm)
|
||||
|
@ -1262,10 +1263,7 @@ function previous_search_result(&$mm)
|
|||
}
|
||||
|
||||
if ($nid<0)
|
||||
{
|
||||
display($mm);
|
||||
return;
|
||||
}
|
||||
return false;
|
||||
|
||||
$mm['active_node'] = $nid;
|
||||
display($mm);
|
||||
|
@ -1296,10 +1294,7 @@ function next_search_result(&$mm)
|
|||
}
|
||||
|
||||
if ($nid<0)
|
||||
{
|
||||
display($mm);
|
||||
return;
|
||||
}
|
||||
return false;
|
||||
|
||||
$mm['active_node'] = $nid;
|
||||
display($mm);
|
||||
|
|
Loading…
Reference in a new issue