We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ca08bc0 + 730c8de commit afb69c5Copy full SHA for afb69c5
app/code/Magento/Backend/view/adminhtml/templates/widget/grid.phtml
@@ -3,9 +3,6 @@
3
* Copyright © Magento, Inc. All rights reserved.
4
* See COPYING.txt for license details.
5
*/
6
-
7
-// @codingStandardsIgnoreFile
8
9
?>
10
<?php
11
/**
@@ -19,7 +16,7 @@
19
16
*
20
17
21
18
/* @var $block \Magento\Backend\Block\Widget\Grid */
22
-$numColumns = !is_null($block->getColumns()) ? sizeof($block->getColumns()) : 0;
+$numColumns = $block->getColumns() !== null ? count($block->getColumns()) : 0;
23
24
<?php if ($block->getCollection()) : ?>
25
<?php if ($block->canDisplayContainer()) : ?>
0 commit comments