MDL-55720 course: fix potential undefined variable and cleaning
authorak4t0sh <ak4t0sh@free.fr>
Wed, 2 Nov 2016 22:15:45 +0000 (23:15 +0100)
committerak4t0sh <ak4t0sh@free.fr>
Wed, 2 Nov 2016 22:15:45 +0000 (23:15 +0100)
commit70a557db24a84d59b997082528013822b72af3c9
treeb154e994c52db0b53d73e83d0080ada739b225fd
parent577bd70d3896fd8b505afdc13dda703126903175
MDL-55720 course: fix potential undefined variable and cleaning

This commit replace $e usage by $returnfromfunc.
Indeed $returnfromfunc always exists in the scope and take $e value in case of moodle_exception.

This commit also remove useless $modcontext affectation.
course/modlib.php