Error after upgrading to version 8.5.5 with PHP 7.3 in EditPagePropertiesPageKey.php

Permalink
Hi all,

We have recently updated Concrete5 to version 8.5.5 and the PHP version to 7.3.
Everything seemed to work fine, however we had a problem with some editors. They were getting an error when trying to display the subpages in the sitemap and when they tried to edit a page they got an error on line 145 of the concrete/src/Permission/Key/EditPagePropertiesPageKey.php file that displayed the following message:

count(): Parameter must be an array or an object that implements Countable

We have fixed this error by modifying the code
($asl->getAttributesAllowedPermission() == 'A' || ($asl->getAttributesAllowedPermission() == 'C' && count($asl->getAttributesAllowedArray() > 0)))

For this other
($asl->getAttributesAllowedPermission() == 'A' || ( $asl->getAttributesAllowedPermission() == 'C' && (((!empty($asl->getAttributesAllowedArray())) ? count($asl->getAttributesAllowedArray()) : 0 ) > 0 )))


If this error is happening to someone else, I hope this can be of use.

Thanks

VictorVea