@@ 14-26 (lines=13) @@ | ||
11 | $grantstring .= " $grant ( "; |
|
12 | reset($granttype); |
|
13 | while (list($class, $modifierId)=each($granttype)) { |
|
14 | if( $granttype > 0 ) { |
|
15 | switch($modifierId) { |
|
16 | case ARGRANTLOCAL: |
|
17 | $modifier = "="; |
|
18 | break; |
|
19 | case ARGRANTCHILDREN: |
|
20 | $modifier = ">"; |
|
21 | break; |
|
22 | default: |
|
23 | $modifier = ""; |
|
24 | } |
|
25 | $grantstring .= " $modifier$class "; |
|
26 | } |
|
27 | } |
|
28 | $grantstring .= " ) "; |
|
29 | } elseif( $granttype > 0 ) { |
|
@@ 29-41 (lines=13) @@ | ||
26 | } |
|
27 | } |
|
28 | $grantstring .= " ) "; |
|
29 | } elseif( $granttype > 0 ) { |
|
30 | switch($granttype) { |
|
31 | case ARGRANTLOCAL: |
|
32 | $modifier = "="; |
|
33 | break; |
|
34 | case ARGRANTCHILDREN: |
|
35 | $modifier = ">"; |
|
36 | break; |
|
37 | default: |
|
38 | $modifier = ""; |
|
39 | } |
|
40 | $grantstring .= " $modifier$grant "; |
|
41 | } |
|
42 | } |
|
43 | } |
|
44 | return $grantstring; |