Merge branch '4.4' into master
[civicrm-core.git] / api / v3 / Dashboard.php
index 44545071adc5cc63bff1794e4251f1f638d9c1c7..e17325e0750bcf40b0a694b947ae9bcc962226e3 100644 (file)
@@ -3,9 +3,9 @@
 
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.4                                                |
+ | CiviCRM version 4.5                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013                                |
+ | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -32,7 +32,7 @@
  *
  * @package CiviCRM_APIv3
  * @subpackage API_Activity
- * @copyright CiviCRM LLC (c) 2004-2013
+ * @copyright CiviCRM LLC (c) 2004-2014
  * @version $Id: Activity.php 30486 2010-11-02 16:12:09Z shot $
  *
  */
@@ -48,7 +48,7 @@
  *
  */
 function civicrm_api3_dashboard_create($params) {
-  if (!CRM_Utils_Array::value('id', $params)) {
+  if (empty($params['id'])) {
     civicrm_api3_verify_one_mandatory($params,
       NULL,
       array(
@@ -107,4 +107,4 @@ function civicrm_api3_dashboard_delete($params) {
   else {
     return civicrm_api3_create_error('Could not delete dashlet');
   }
-}
\ No newline at end of file
+}