diff -r 3b25a59dacd1 -r 16a1e8626dd9 plugins/admin/UserManager.php --- a/plugins/admin/UserManager.php Fri Aug 21 13:48:48 2009 -0400 +++ b/plugins/admin/UserManager.php Fri Aug 21 13:49:45 2009 -0400 @@ -59,6 +59,24 @@ if ( !$q ) $db->_die(); echo '
' . $lang->get('acpum_msg_delete_success') . '
'; + + // deleting own account? + if ( $user_id === $session->user_id ) + { + // cute little hack to boot them out of the admin panel + echo ''; + } } else { @@ -264,7 +282,7 @@ } } - if ( count($errors) > 0 || $avatar_post_fail ) + if ( count($errors) > 0 || @$avatar_post_fail ) { if ( count($errors) > 0 ) {