Browse code

blocks/menu/menu.php: fix array to string conversion warning for PHP 8 - remove temp error suppression

Clarissa Walker authored on 2026/09/15 06:48:18
Showing 1 changed files
... ...
@@ -1,7 +1,8 @@
1 1
 <?php
2
-error_reporting(0);
3 2
 if(!defined("_CHARSET")) exit( );
4 3
 
4
+$content = (int) $content;
5
+
5 6
 	if(isset($blocks[$block]['content'])) {
6 7
 		foreach($blocks[$block]['content'] as $page) {
7 8
 			if(isset($pagelinks[$page]['link'])) {