Skip to content

Commit 105c599

Browse files
committed
fix missing "misc" group in parsePerms()
1 parent f89b347 commit 105c599

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

google-play.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,10 @@ public function parsePerms($packageName,$lang='en') {
143143
$perms[$group[3][0]] = ['group_name'=>$group[0], 'perms'=>$group[2]];
144144
foreach($group[2] as $perm) $perms_unique[] = $perm[1];
145145
}
146+
if (!empty($misc = json_decode($arr)[1])) {
147+
$perms['misc'] = ['group_name'=>$misc[0][0], 'perms'=>$misc[0][2]];
148+
foreach($misc[0][2] as $perm) $perms_unique[] = $perm[1];
149+
}
146150

147151
return ['success'=>1,'grouped'=>$perms,'perms'=>array_unique($perms_unique)];
148152
}

0 commit comments

Comments
 (0)