CRM-14239 - Fix undefined variable notice
authorColeman Watts <coleman@civicrm.org>
Thu, 30 Jul 2015 15:24:34 +0000 (11:24 -0400)
committerColeman Watts <coleman@civicrm.org>
Thu, 30 Jul 2015 15:24:34 +0000 (11:24 -0400)
bin/cli.class.php

index 9a569b0cc9235ab826a31304391bccab5fbb294d..5489e9d0d690b542fd047e541b3d7a36e4344b7a 100644 (file)
@@ -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;
     }