Right on top of this file there is:
Code: Select all
if (isset($serendipity['lang']) && !isset($serendipity['languages'][$serendipity['lang']])) {
$serendipity['lang'] = $serendipity['autolang'];
}
As far as I can see, passing through without further errors (regarding lang) and having no negative effects to real language set later on, the error can be dropped by using
Code: Select all
if (!isset($serendipity['lang']) && ...Right lang inclusion and set correct lang seems quite complicated though.
(I know, its not really a bug, as it does not error and still sets the right lang later on when silencing error reporting to "Fatal" only.)