From: skodak Date: Wed, 19 Sep 2007 19:20:18 +0000 (+0000) Subject: MDL-11347 yet more beautification proposed by Eloy X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=203d964a4a39a6c3770bbe3f2ba30348eaadf534;p=moodle.git MDL-11347 yet more beautification proposed by Eloy --- diff --git a/lib/accesslib.php b/lib/accesslib.php index 6846b2d90d..a65449030a 100755 --- a/lib/accesslib.php +++ b/lib/accesslib.php @@ -4451,6 +4451,7 @@ function build_context_path($force=false) { $emptyclause = ''; } + // TODO: following could be improved with WHERE + $emptyclause, but there should be a better way $upathsql = "UPDATE {$CFG->prefix}context SET path = COALESCE((SELECT ct.path FROM {$CFG->prefix}$temptable ct WHERE {$CFG->prefix}context.id=ct.id), {$CFG->prefix}context.path)";