Skip to content

Commit ecd3f24

Browse files
committed
Fatal error: Uncaught TypeError: sizeof(): Argument #1 ($var) must be of type Countable|array, null given in ~\includes\blocks\block_categories.php:261 Stack trace: #0 ~\includes\blocks.php(62): include_once() #1 ~\includes\content\error404.php(29): require_once('C:\\xampp\\htdocs...') #2 ~\index.php(53): require('C:\\xampp\\htdocs...') #3 {main} thrown in ~\includes\blocks\block_categories.php on line 261
1 parent bd838ab commit ecd3f24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

myoos/includes/blocks/block_categories.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ function oos_show_category($nCounter) {
258258
}
259259
}
260260

261-
if (sizeof($list_of_categories_ids) > 0 ) {
261+
if (isset($list_of_categories_ids) && (sizeof($list_of_categories_ids) > 0 )) {
262262
$select_list_of_cat_ids = implode(",", $list_of_categories_ids);
263263

264264
$categoriestable = $oostable['categories'];

0 commit comments

Comments
 (0)