Permalink
Browse files

MDL-26618 Moving sticky blocks on other pages does not work in Oracle.

This was due to some missing $DB->sql_empty() in a query affecting the
block_positions table.
  • Loading branch information...
1 parent 020f0ff commit b8369f5e9fdb6b57e0176980dcfa3621f0110647 @timhunt timhunt committed Feb 26, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/blocklib.php
View
4 lib/blocklib.php
@@ -550,6 +550,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,

0 comments on commit b8369f5

Please sign in to comment.