Details
-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: 3.1.0-dev
-
Fix Version/s: 3.1.0-a1
-
Component/s: ACP
-
Labels:None
-
GitHub Pull Request URL:
Description
[phpBB Debug] PHP Warning: in file [ROOT]/includes/avatar/manager.php on line 182: array_combine() [function.array-combine]: Both parameters should have at least 1 element [phpBB Debug] PHP Warning: in file [ROOT]/includes/avatar/manager.php on line 182: array_combine() [function.array-combine]: Both parameters should have at least 1 element
The problem is, that $row is empty for new groups, so array_key and array_value don't have any elements and the combine fails
Adding
if (empty($row)) { return array(); }
helps for the combine problem. However then you receive:
[phpBB Debug] PHP Notice: in file [ROOT]/includes/acp/acp_groups.php on line 542: Undefined index: avatar_type [phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_display.php on line 1383: Undefined index: avatar [phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_display.php on line 1384: Undefined index: avatar_width [phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_display.php on line 1385: Undefined index: avatar_height [phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_display.php on line 1389: Undefined index: avatar_type
So more stuff needs to be fixed