Skip to content

Commit

Permalink
MDL-26618 Moving sticky blocks on other pages does not work in Oracle.
Browse files Browse the repository at this point in the history
This was due to some missing $DB->sql_empty() in a query affecting the
block_positions table.
  • Loading branch information
timhunt committed Jul 4, 2011
1 parent 81f8e0f commit fd3932f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/blocklib.php
Expand Up @@ -557,6 +557,10 @@ public function load_blocks($includeinvisible = null) {
'contextid2' => $context->id,
'pagetype' => $this->page->pagetype,
);
if ($this->page->subpage === '') {
$params['subpage1'] = $DB->sql_empty();
$params['subpage2'] = $DB->sql_empty();
}
$sql = "SELECT
bi.id,
bp.id AS blockpositionid,
Expand Down

0 comments on commit fd3932f

Please sign in to comment.