Revision 1211
Added by aldus about 15 years ago
search_modext.php | ||
---|---|---|
52 | 52 |
// make username and displayname for "last modified by... on ..."-string |
53 | 53 |
function get_page_modified_by($page_modified_by, $users) { |
54 | 54 |
global $TEXT; |
55 |
if($page_modified_by > 0) {
|
|
55 |
if ( ($page_modified_by > 0) && (count($users) > $page_modified_by) ) {
|
|
56 | 56 |
$username = $users[$page_modified_by]['username']; |
57 | 57 |
$displayname = $users[$page_modified_by]['display_name']; |
58 | 58 |
} else { |
Also available in: Unified diff
Bugfix inside "search_modext.php" to avoid warings if the search found a page last modified by a user witch has been deleted. (ticket #863)