Hi, The plug-in seems to be working fine, but when I am viewing the “All Users” table from the dashboard, and click on “Screen Options”, I get this error message at the top of the “Screen Options” box:
Warning: Invalid argument supplied for foreach() in /home2/domain/public_html/wp-content/plugins/amr-users/includes/ameta-admin.php on line 48
I looked at the file in question, seems to be this bit:
function amr_add_user_columns ($columns) {
$colstoadd = ausers_get_option ('amr-users-show-in-wplist');
$nicenames = ausers_get_option ('amr-users-nicenames');
foreach ($colstoadd as $field => $show) {
if ($show) {
if (!empty($nicenames[$field]))
$columns[$field] = $nicenames[$field];
else
$columns[$field] = $field;
}
}
return $columns;
}
Any idea how I can fix this so the error message doesn’t show? Thanks!
https://wordpress.org/plugins/amr-users/