MDL-77735 core: Check $CFG->lang isset
commit440edc5e42b5e419088b63f71f8dc93349315bf7
authorSara Arjona <sara@moodle.com>
Fri, 24 Mar 2023 11:42:53 +0000 (24 12:42 +0100)
committerSara Arjona <sara@moodle.com>
Fri, 14 Apr 2023 11:46:18 +0000 (14 13:46 +0200)
tree76cdf84404ef3560672269813cb67687d44b158c
parent0e08d0df604ecb08238a0288f4922a2effb1d334
MDL-77735 core: Check $CFG->lang isset

In some cases, $CFG->lang might not be set, and this is causing a
Notice to be displayed when, for instance, database connection fails.
This patch should fix this case.
lib/weblib.php