equal
deleted
inserted
replaced
41 'link' => $link |
41 'link' => $link |
42 )); |
42 )); |
43 } |
43 } |
44 } |
44 } |
45 |
45 |
46 $plugins->attachHook('compile_template', 'userprefs_jbox_setup($button, $tb, $menubtn);'); |
46 $plugins->attachHook('tpl_compile_sidebar', 'userprefs_jbox_setup($button, $tb, $menubtn);'); |
47 |
47 |
48 function userprefs_jbox_setup(&$button, &$tb, &$menubtn) |
48 function userprefs_jbox_setup(&$button, &$tb, &$menubtn) |
49 { |
49 { |
50 global $db, $session, $paths, $template, $plugins; // Common objects |
50 global $db, $session, $paths, $template, $plugins; // Common objects |
51 global $lang; |
51 global $lang; |
467 $session->user_title = $user_title; |
467 $session->user_title = $user_title; |
468 } |
468 } |
469 $user_title_col = ", user_title = $colval"; |
469 $user_title_col = ", user_title = $colval"; |
470 } |
470 } |
471 $user_rank_col = ''; |
471 $user_rank_col = ''; |
472 if ( intval($_POST['user_rank']) != $current_rank['rank_id'] && count($available_ranks) > 1 ) |
472 if ( isset($_POST['user_rank']) && intval($_POST['user_rank']) != $current_rank['rank_id'] && count($available_ranks) > 1 ) |
473 { |
473 { |
474 if ( $_POST['user_rank'] == 'NULL' ) |
474 if ( $_POST['user_rank'] == 'NULL' ) |
475 { |
475 { |
476 $user_rank_col = ", user_rank = NULL, user_rank_userset = 0"; |
476 $user_rank_col = ", user_rank = NULL, user_rank_userset = 0"; |
477 } |
477 } |