Fix more undefined variable/index notice in tests

This commit is contained in:
Hypolite Petovan 2018-07-01 04:03:57 -04:00
parent 209510e970
commit a380bcd1c1
7 changed files with 43 additions and 31 deletions

View file

@ -1482,7 +1482,7 @@ function api_users_lookup($type)
{
$users = [];
if (x($_REQUEST['user_id'])) {
if (!empty($_REQUEST['user_id'])) {
foreach (explode(',', $_REQUEST['user_id']) as $id) {
if (!empty($id)) {
$users[] = api_get_user(get_app(), $id);