From: Coleman Watts Date: Thu, 30 Jul 2015 15:24:34 +0000 (-0400) Subject: CRM-14239 - Fix undefined variable notice X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=ab874c22a68548fcf949503e87976fd66d18b124;p=civicrm-core.git CRM-14239 - Fix undefined variable notice --- diff --git a/bin/cli.class.php b/bin/cli.class.php index 9a569b0cc9..5489e9d0d6 100644 --- a/bin/cli.class.php +++ b/bin/cli.class.php @@ -111,7 +111,7 @@ class civicrm_cli { $result = civicrm_api($this->_entity, $this->_action, $this->_params); } - if ($result['is_error'] != 0) { + if (!empty($result['is_error'])) { $this->_log($result['error_message']); return FALSE; }