MDL-38345 Prevent undefined CFG leading to DB error.
commit5ac03639ca8fd774e77670276f914115a32447e7
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Thu, 7 Mar 2013 09:21:03 +0000 (7 10:21 +0100)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Thu, 7 Mar 2013 09:23:46 +0000 (7 10:23 +0100)
tree0f7d88e879a538e1c9ceb55b478a941afa3196fa
parent67c858414acb6564cd11f27adb9ffc75e9c8ba7f
MDL-38345 Prevent undefined CFG leading to DB error.

It seems that MDL-32975, no matter a version bump
was done, leads to the $CFG->navsortmycoursessort
setting undefined sometimes. And that ends with an error
visiting the /my page. This just ensures a safe default
if the setting is undefined/empty.
lib/navigationlib.php