From fd3932fe5429a87703e292184ed39a5e7b90bbda 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 1fc331bae4b..4c816c23068 100644 --- a/lib/blocklib.php +++ b/lib/blocklib.php @@ -557,6 +557,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,