Changeset 397 for trunk/include/user.inc.php
- Timestamp:
- Mar 27, 2004, 9:05:01 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/user.inc.php
r375 r397 124 124 // special for $user['restrictions'] array 125 125 $user['restrictions'] = explode( ',', $user['forbidden_categories'] ); 126 if ( $user['restrictions'][0] == '' ) $user['restrictions'] = array(); 126 if ( $user['restrictions'][0] == '' ) 127 { 128 $user['restrictions'] = array(); 129 } 130 127 131 $isadmin = false; 128 if ($user['status'] == 'admin') $isadmin =true; 132 if ( $user['status'] == 'admin' ) 133 { 134 $isadmin =true; 135 } 129 136 // calculation of the number of picture to display per page 130 137 $user['nb_image_page'] = $user['nb_image_line'] * $user['nb_line_page']; 138 131 139 init_userprefs($user); 140 132 141 $user['lien_expanded']='./template/'.$user['template'].'/theme/expanded.gif'; 133 142 $user['lien_collapsed']='./template/'.$user['template'].'/theme/collapsed.gif';
Note: See TracChangeset
for help on using the changeset viewer.