@@ -825,8 +825,8 @@ public function update_profile($id, $info, $section)
825825 case 'display ' :
826826 {
827827 $ form = array (
828- 'disp_topics ' => Utils:: trim (Input::post ('form_disp_topics ' )),
829- 'disp_posts ' => Utils:: trim (Input::post ('form_disp_posts ' )),
828+ 'disp_topics ' => intval (Input::post ('form_disp_topics ' )),
829+ 'disp_posts ' => intval (Input::post ('form_disp_posts ' )),
830830 'show_smilies ' => Input::post ('form_show_smilies ' ) ? '1 ' : '0 ' ,
831831 'show_img ' => Input::post ('form_show_img ' ) ? '1 ' : '0 ' ,
832832 'show_img_sig ' => Input::post ('form_show_img_sig ' ) ? '1 ' : '0 ' ,
@@ -835,7 +835,6 @@ public function update_profile($id, $info, $section)
835835 );
836836
837837 if ($ form ['disp_topics ' ] != '' ) {
838- $ form ['disp_topics ' ] = intval ($ form ['disp_topics ' ]);
839838 if ($ form ['disp_topics ' ] < 3 ) {
840839 $ form ['disp_topics ' ] = 3 ;
841840 } elseif ($ form ['disp_topics ' ] > 75 ) {
@@ -844,7 +843,6 @@ public function update_profile($id, $info, $section)
844843 }
845844
846845 if ($ form ['disp_posts ' ] != '' ) {
847- $ form ['disp_posts ' ] = intval ($ form ['disp_posts ' ]);
848846 if ($ form ['disp_posts ' ] < 3 ) {
849847 $ form ['disp_posts ' ] = 3 ;
850848 } elseif ($ form ['disp_posts ' ] > 75 ) {
@@ -1000,7 +998,7 @@ public function update_profile($id, $info, $section)
1000998
1001999 public function get_user_info ($ id )
10021000 {
1003- $ user ['select ' ] = array ('u.id ' , 'u.username ' , 'u.email ' , 'u.title ' , 'u.realname ' , 'u.url ' , 'u.location ' , 'u.signature ' , 'u.disp_topics ' , 'u.disp_posts ' , 'u.email_setting ' , 'u.notify_with_post ' , 'u.auto_notify ' , 'u.show_img ' , 'u.show_img_sig ' , 'u.show_avatars ' , 'u.show_sig ' , 'u.timezone ' , ' u.dst ' , ' u. num_posts ' , 'u.last_post ' , 'u.registered ' , 'u.registration_ip ' , 'u.admin_note ' , 'u.last_visit ' , 'g.g_id ' , 'g.g_user_title ' , 'g.g_moderator ' );
1001+ $ user ['select ' ] = array ('u.id ' , 'u.username ' , 'u.email ' , 'u.title ' , 'u.realname ' , 'u.url ' , 'u.location ' , 'u.signature ' , 'u.disp_topics ' , 'u.disp_posts ' , 'u.email_setting ' , 'u.notify_with_post ' , 'u.auto_notify ' , 'u.show_img ' , 'u.show_img_sig ' , 'u.show_avatars ' , 'u.show_sig ' , 'u.num_posts ' , 'u.last_post ' , 'u.registered ' , 'u.registration_ip ' , 'u.admin_note ' , 'u.last_visit ' , 'g.g_id ' , 'g.g_user_title ' , 'g.g_moderator ' );
10041002
10051003 $ user = DB ::for_table ('users ' )
10061004 ->table_alias ('u ' )
0 commit comments