Changeset 3874:ab8368569446 for inc/core/class.dc.workspace.php
- Timestamp:
- 09/14/18 12:16:17 (7 years ago)
- Branch:
- default
- File:
-
- 1 edited
-
inc/core/class.dc.workspace.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
inc/core/class.dc.workspace.php
r3773 r3874 18 18 protected $user_id; ///< <b>string</b> User ID 19 19 20 protected $global_prefs = array(); ///< <b>array</b> Global prefs array21 protected $local_prefs = array(); ///< <b>array</b> Local prefs array22 protected $prefs = array(); ///< <b>array</b> Associative prefs array23 protected $ws; ///< <b>string</b> Current workspace20 protected $global_prefs = []; ///< <b>array</b> Global prefs array 21 protected $local_prefs = []; ///< <b>array</b> Local prefs array 22 protected $prefs = []; ///< <b>array</b> Associative prefs array 23 protected $ws; ///< <b>string</b> Current workspace 24 24 25 25 /** … … 87 87 $array = $rs->user_id ? 'local' : 'global'; 88 88 89 $this->{$array . '_prefs'}[$id] = array(89 $this->{$array . '_prefs'}[$id] = [ 90 90 'ws' => $this->ws, 91 91 'value' => $value, … … 93 93 'label' => (string) $rs->f('pref_label'), 94 94 'global' => $rs->user_id == '' 95 );95 ]; 96 96 } 97 97 … … 391 391 $array = $global ? 'global' : 'local'; 392 392 unset($this->{$array . '_prefs'}); 393 $this->{$array . '_prefs'} = array();393 $this->{$array . '_prefs'} = []; 394 394 395 395 $array = $global ? 'local' : 'global';
Note: See TracChangeset
for help on using the changeset viewer.
