From b8369f5e9fdb6b57e0176980dcfa3621f0110647 Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Sat, 26 Feb 2011 11:26:13 +0000 Subject: [PATCH] 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. --- lib/blocklib.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/blocklib.php b/lib/blocklib.php index 9e3c729edd5..f526a303ecf 100644 --- a/lib/blocklib.php +++ b/lib/blocklib.php @@ -550,6 +550,10 @@ class block_manager { '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,