Fixed Reassign Group causes server errors

Shiro

Member
These errors were found in the server error log today.
Code:
ErrorException: Undefined index: username - library/Nobita/Teams/ControllerPublic/Team.php:440
Generated By: <CENSORED>, Today at 9:30 AM
Stack Trace
#0 /var/www/kinmunity.com/library/Nobita/Teams/ControllerPublic/Team.php(440): XenForo_Application::handlePhpError(8, 'Undefined index...', '/var/www/kinmun...', 440, Array)
#1 /var/www/kinmunity.com/library/XenForo/FrontController.php(351): Nobita_Teams_ControllerPublic_Team->actionReassign()
#2 /var/www/kinmunity.com/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#3 /var/www/kinmunity.com/index.php(13): XenForo_FrontController->run()
#4 {main}
Request State
array(3) {
  ["url"] => string(65) "https://www.kinmunity.com/groups/otherkin-discussions.13/reassign"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(4) {
    ["username"] => string(0) ""
    ["save"] => string(14) "Reassign Group"
    ["_xfConfirm"] => string(1) "1"
    ["_xfToken"] => string(8) "********"
  }
}
Code:
ErrorException: Undefined index: user_id - library/Nobita/Teams/ControllerPublic/Team.php:438
Generated By: <CENSORED>, Today at 9:30 AM
Stack Trace
#0 /var/www/kinmunity.com/library/Nobita/Teams/ControllerPublic/Team.php(438): XenForo_Application::handlePhpError(8, 'Undefined index...', '/var/www/kinmun...', 438, Array)
#1 /var/www/kinmunity.com/library/XenForo/FrontController.php(351): Nobita_Teams_ControllerPublic_Team->actionReassign()
#2 /var/www/kinmunity.com/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#3 /var/www/kinmunity.com/index.php(13): XenForo_FrontController->run()
#4 {main}
Request State
array(3) {
  ["url"] => string(65) "https://www.kinmunity.com/groups/otherkin-discussions.13/reassign"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(4) {
    ["username"] => string(0) ""
    ["save"] => string(14) "Reassign Group"
    ["_xfConfirm"] => string(1) "1"
    ["_xfToken"] => string(8) "********"
  }
}
 
Back
Top