diff --git a/ext/blocks/main.php b/ext/blocks/main.php index fb273459..b4da27da 100644 --- a/ext/blocks/main.php +++ b/ext/blocks/main.php @@ -49,7 +49,7 @@ class Blocks extends Extension foreach ($blocks as $block) { $path = implode("/", $event->args); if (strlen($path) < 4000 && fnmatch($block['pages'], $path)) { - $b = new Block($block['title'], $block['content'], $block['area'], $block['priority']); + $b = new Block($block['title'], $block['content'], $block['area'], (int)$block['priority']); $b->is_content = false; $page->add_block($b); }