plugins/SpecialUserPrefs.php
changeset 953 323c4cd1aa37
parent 922 d6f391475bb9
child 960 e74741b8360b
--- a/plugins/SpecialUserPrefs.php	Mon May 04 23:07:00 2009 -0400
+++ b/plugins/SpecialUserPrefs.php	Tue May 05 00:10:26 2009 -0400
@@ -43,7 +43,7 @@
   }
 }
 
-$plugins->attachHook('compile_template', 'userprefs_jbox_setup($button, $tb, $menubtn);');
+$plugins->attachHook('tpl_compile_sidebar', 'userprefs_jbox_setup($button, $tb, $menubtn);');
 
 function userprefs_jbox_setup(&$button, &$tb, &$menubtn)
 {
@@ -469,7 +469,7 @@
           $user_title_col = ", user_title = $colval";
         }
         $user_rank_col = '';
-        if ( intval($_POST['user_rank']) != $current_rank['rank_id'] && count($available_ranks) > 1 )
+        if ( isset($_POST['user_rank']) && intval($_POST['user_rank']) != $current_rank['rank_id'] && count($available_ranks) > 1 )
         {
           if ( $_POST['user_rank'] == 'NULL' )
           {