@@ 1424-1430 (lines=7) @@ | ||
1421 | $resg = ($group_perms->num_rows() == 1) ? $group_perms->row_array() : array('permissions' => FALSE); |
|
1422 | ||
1423 | //Group permissions are set |
|
1424 | if($resg['permissions'] !== FALSE && $resf['permissions'] === FALSE) |
|
1425 | { |
|
1426 | //Return groups query |
|
1427 | $result_array['group_perms'] = $resg['permissions']; |
|
1428 | $result_array['friend_perms'] = PERM_NO_ACCESS; |
|
1429 | ||
1430 | } |
|
1431 | ||
1432 | //Group and friend permissions set |
|
1433 | if($resg['permissions'] !== FALSE && $resf['permissions'] !== FALSE) |
|
@@ 1433-1439 (lines=7) @@ | ||
1430 | } |
|
1431 | ||
1432 | //Group and friend permissions set |
|
1433 | if($resg['permissions'] !== FALSE && $resf['permissions'] !== FALSE) |
|
1434 | { |
|
1435 | //Return groups query and friend_perms |
|
1436 | $result_array['friend_perms'] = $resf['permissions']; |
|
1437 | $result_array['group_perms'] = $resf['permissions']; |
|
1438 | ||
1439 | } |
|
1440 | ||
1441 | //Friend Permissions are set |
|
1442 | if($resg['permissions'] === FALSE && $resf['permissions'] !== FALSE) |
|
@@ 1442-1447 (lines=6) @@ | ||
1439 | } |
|
1440 | ||
1441 | //Friend Permissions are set |
|
1442 | if($resg['permissions'] === FALSE && $resf['permissions'] !== FALSE) |
|
1443 | { |
|
1444 | //Return user query |
|
1445 | $result_array['friend_perms'] = $resf['permissions']; |
|
1446 | $result_array['group_perms'] = PERM_NO_ACCESS; |
|
1447 | } |
|
1448 | ||
1449 | /** |
|
1450 | * Get the current user's permissions from the database |