Skip to content

Commit

Permalink
MDL-11347 yet more beautification proposed by Eloy
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Sep 19, 2007
1 parent b37453d commit 203d964
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/accesslib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)";

Expand Down

0 comments on commit 203d964

Please sign in to comment.