skodak/moodle-mod_book — Issue #18: Navigation exit goes to Login screen on front page books
Author: mauno
Created: 2011-10-13 08:06:47+00:00
State: open

Hi Petr,

this is a very tiny issue and easy to fix. If you have a book on front page for guests and press at the last page of book nav_exit button moodle goes to Login screen if you are not logged in. This is caused by (line 159 in book 2.1 view.php)

$chnavigation .= '';

that could be changed (for example) to

if ($course->id = '1') {$chnavigation .= '';$sec = '';}
else {$chnavigation .= '';}