X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FContact%2FImport%2FImportJob.php;h=fff23875c7a71c0f3089d5a335794ce2e6b45dae;hb=bf6a7dba924fa32932a3a10e3d5f62b0d967f78a;hp=565984708154bae98a9beeba1b7f39cf658c64e2;hpb=c8115b6a584df05d3992d4ef86ac6fd5344a5e28;p=civicrm-core.git diff --git a/CRM/Contact/Import/ImportJob.php b/CRM/Contact/Import/ImportJob.php index 5659847081..fff23875c7 100644 --- a/CRM/Contact/Import/ImportJob.php +++ b/CRM/Contact/Import/ImportJob.php @@ -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 @@ -416,7 +416,7 @@ class CRM_Contact_Import_ImportJob { $result = CRM_Core_DAO::executeQuery($query, array($database)); $incompleteImportTables = array(); while ($importTable = $result->fetch()) { - if (!$this->isComplete($importTable)) { + if (!self::isComplete($importTable)) { $incompleteImportTables[] = $importTable; } }