Ticket #7296: 7296.diff
| File 7296.diff, 1.0 KB (added by , 9 years ago) |
|---|
-
src/bp-groups/classes/class-bp-groups-group.php
164 164 * @var array 165 165 */ 166 166 public $args; 167 168 /** 169 * Extra dynamic properties set on the group object are kept here as associative array fields. 170 * 171 * @since 2.7.0 172 * @var array 173 */ 174 private $_fields = array(); 167 175 168 176 /** 169 177 * Constructor method. … … 428 436 return $this->get_user_has_access(); 429 437 430 438 default : 439 return isset( $this->_fields[ $key ] ) ? $this->_fields[ $key ] : null; 431 440 break; 432 441 } 433 442 } … … 457 466 return true; 458 467 459 468 default : 460 return false;469 return isset( $this->_fields[ $key ] ) ? true: false; 461 470 } 462 471 } 463 472 … … 475 484 switch ( $key ) { 476 485 case 'user_has_access' : 477 486 return $this->user_has_access = (bool) $value; 487 default: 488 $this->_fields[ $key ] = $value; 489 break; 478 490 } 479 491 } 480 492