diff --git a/lib/blocklib.php b/lib/blocklib.php index 0f50035e0ce..ad04eaa49f8 100644 --- a/lib/blocklib.php +++ b/lib/blocklib.php @@ -598,7 +598,7 @@ function blocks_execute_repositioning(&$instance, $newpos, $newweight) { } function blocks_get_by_page($page) { - $blocks = get_records_select('block_instance', 'pageid = '. $page->get_id() .' AND pagetype = \''. $page->get_type() .'\'', 'position, weight'); + $blocks = get_records_select('block_instance', "pageid = '". $page->get_id() ."' AND pagetype = '". $page->get_type() ."'", 'position, weight'); $positions = $page->blocks_get_positions(); $arr = array();