@@ 1437-1443 (lines=7) @@ | ||
1434 | $resg = ($group_perms->num_rows() == 1) ? $group_perms->row_array() : array('permissions' => FALSE); |
|
1435 | ||
1436 | //Group permissions are set |
|
1437 | if($resg['permissions'] !== FALSE && $resf['permissions'] === FALSE) |
|
1438 | { |
|
1439 | //Return groups query |
|
1440 | $result_array['group_perms'] = $resg['permissions']; |
|
1441 | $result_array['friend_perms'] = PERM_NO_ACCESS; |
|
1442 | ||
1443 | } |
|
1444 | ||
1445 | //Group and friend permissions set |
|
1446 | if($resg['permissions'] !== FALSE && $resf['permissions'] !== FALSE) |
|
@@ 1446-1452 (lines=7) @@ | ||
1443 | } |
|
1444 | ||
1445 | //Group and friend permissions set |
|
1446 | if($resg['permissions'] !== FALSE && $resf['permissions'] !== FALSE) |
|
1447 | { |
|
1448 | //Return groups query and friend_perms |
|
1449 | $result_array['friend_perms'] = $resf['permissions']; |
|
1450 | $result_array['group_perms'] = $resf['permissions']; |
|
1451 | ||
1452 | } |
|
1453 | ||
1454 | //Friend Permissions are set |
|
1455 | if($resg['permissions'] === FALSE && $resf['permissions'] !== FALSE) |
|
@@ 1455-1460 (lines=6) @@ | ||
1452 | } |
|
1453 | ||
1454 | //Friend Permissions are set |
|
1455 | if($resg['permissions'] === FALSE && $resf['permissions'] !== FALSE) |
|
1456 | { |
|
1457 | //Return user query |
|
1458 | $result_array['friend_perms'] = $resf['permissions']; |
|
1459 | $result_array['group_perms'] = PERM_NO_ACCESS; |
|
1460 | } |
|
1461 | ||
1462 | /** |
|
1463 | * Get the current user's permissions from the database |