<?php
/*
+--------------------------------------------------------------------+
- | 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. |
| |
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2013
+ * @copyright CiviCRM LLC (c) 2004-2014
* $Id$
*
*/
public function setDefaultValues() {
$defaults = $this->_defaults;
if (isset($this->_id)) {
- if (CRM_Utils_Array::value('permission', $this->_defaults)) {
+ if (!empty($this->_defaults['permission'])) {
foreach (explode(',', $this->_defaults['permission']) as $value) {
$components[$value] = $value;
}