Skip to content
Snippets Groups Projects
Commit d35da896 authored by Prasad's avatar Prasad
Browse files

Fixes #1951: array type check before use for php 8.x

parent 8b526df9
No related branches found
No related tags found
No related merge requests found
......@@ -532,7 +532,7 @@ class Emails extends CRMEntity {
$sharingRuleInfoVariable = $module . '_share_read_permission';
$sharingRuleInfo = $sharingRuleInfoVariable;
$sharedTabId = null;
if (!empty($sharingRuleInfo) && (php7_count($sharingRuleInfo['ROLE']) > 0 ||
if (is_array($sharingRuleInfo) && !empty($sharingRuleInfo) && (php7_count($sharingRuleInfo['ROLE']) > 0 ||
php7_count($sharingRuleInfo['GROUP']) > 0)) {
$tableName = $tableName . '_t' . $tabId;
$sharedTabId = $tabId;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment