Skip to content

Commit afb69c5

Browse files
author
OlgaVasyltsun
committed
Merge remote-tracking branch 'origin/MC-17383' into 2.2-develop-pr104
2 parents ca08bc0 + 730c8de commit afb69c5

File tree

1 file changed

+1
-4
lines changed
  • app/code/Magento/Backend/view/adminhtml/templates/widget

1 file changed

+1
-4
lines changed

app/code/Magento/Backend/view/adminhtml/templates/widget/grid.phtml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6-
7-
// @codingStandardsIgnoreFile
8-
96
?>
107
<?php
118
/**
@@ -19,7 +16,7 @@
1916
*
2017
*/
2118
/* @var $block \Magento\Backend\Block\Widget\Grid */
22-
$numColumns = !is_null($block->getColumns()) ? sizeof($block->getColumns()) : 0;
19+
$numColumns = $block->getColumns() !== null ? count($block->getColumns()) : 0;
2320
?>
2421
<?php if ($block->getCollection()) : ?>
2522
<?php if ($block->canDisplayContainer()) : ?>

0 commit comments

Comments
 (0)