Merge remote-tracking branch 'upstream/4.4' into 4.4-master-2014-03-14-00-44-17
[civicrm-core.git] / api / v3 / Dashboard.php
index 44545071adc5cc63bff1794e4251f1f638d9c1c7..9b822627d54d7d2e8249d551af8235cf36aed0ff 100644 (file)
@@ -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
+}