Fix php 7.2 count notice
authoreileen <emcnaughton@wikimedia.org>
Thu, 21 Mar 2019 23:54:20 +0000 (12:54 +1300)
committereileen <emcnaughton@wikimedia.org>
Thu, 21 Mar 2019 23:54:20 +0000 (12:54 +1300)
CRM/Contact/Import/ImportJob.php

index 565984708154bae98a9beeba1b7f39cf658c64e2..1cec44c09e8d921bd0ee454a099645086a9d838f 100644 (file)
@@ -271,7 +271,7 @@ class CRM_Contact_Import_ImportJob {
       }
     }
 
-    if ($this->_newTagName || count($this->_tag)) {
+    if ($this->_newTagName || !empty($this->_tag)) {
       $tagAdditions = $this->_tagImportedContactsWithNewTag($contactIds,
         $this->_newTagName,
         $this->_newTagDesc