diff options
-rw-r--r-- | include/user.inc.php | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/include/user.inc.php b/include/user.inc.php index 880e419d4..e4cad9346 100644 --- a/include/user.inc.php +++ b/include/user.inc.php @@ -123,12 +123,21 @@ foreach ( $infos as $info ) { // special for $user['restrictions'] array $user['restrictions'] = explode( ',', $user['forbidden_categories'] ); -if ( $user['restrictions'][0] == '' ) $user['restrictions'] = array(); +if ( $user['restrictions'][0] == '' ) +{ + $user['restrictions'] = array(); +} + $isadmin = false; -if ($user['status'] == 'admin') $isadmin =true; +if ( $user['status'] == 'admin' ) +{ + $isadmin =true; +} // calculation of the number of picture to display per page $user['nb_image_page'] = $user['nb_image_line'] * $user['nb_line_page']; + init_userprefs($user); + $user['lien_expanded']='./template/'.$user['template'].'/theme/expanded.gif'; $user['lien_collapsed']='./template/'.$user['template'].'/theme/collapsed.gif'; ?> |