From fea7ec2482db361984a5ff3d041d1ec4bc7b079a Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Sat, 7 Apr 2018 22:18:39 +0200 Subject: [PATCH] We don't need type casting for dba::select() arguments --- include/api.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/api.php b/include/api.php index 8c79cc4814..ccb8608738 100644 --- a/include/api.php +++ b/include/api.php @@ -3307,7 +3307,7 @@ function api_lists_ownerships($type) $user_info = api_get_user($a); $uid = $user_info['uid']; - $groups = dba::select('group', [], ['deleted' => 0, 'uid' => intval($uid)]); + $groups = dba::select('group', [], ['deleted' => 0, 'uid' => $uid]); // loop through all groups $lists = []; @@ -5581,7 +5581,7 @@ function api_lists_destroy($type) } // get data of the specified group id - $group = dba::selectFirst('group', [], ['uid' => intval($uid), 'id' => intval($gid)]); + $group = dba::selectFirst('group', [], ['uid' => $uid, 'id' => $gid]); // error message if specified gid is not in database if (!$group) { throw new BadRequestException('gid not available'); @@ -5835,7 +5835,7 @@ function api_lists_update($type) } // get data of the specified group id - $group = dba::selectFirst('group', [], ['uid' => intval($uid), 'id' => intval($gid)]); + $group = dba::selectFirst('group', [], ['uid' => $uid, 'id' => $gid]); // error message if specified gid is not in database if (!$group) { throw new BadRequestException('gid not available'); -- 2.39.5