@@ -13,7 +13,7 @@ |
||
13 | 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
14 | 14 | */ |
15 | 15 | global $LANG; |
16 | -$LANG = array ( |
|
16 | +$LANG = array( |
|
17 | 17 | 'position_in_list' => 'Position in list', |
18 | 18 | 'visible_by' => 'Visible by', |
19 | 19 | 'restrict_visibility_to' => 'Restrict visibility to', |
@@ -13,7 +13,7 @@ |
||
13 | 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
14 | 14 | */ |
15 | 15 | global $LANG; |
16 | -$LANG = array ( |
|
16 | +$LANG = array( |
|
17 | 17 | 'position_in_list' => 'Position in list', |
18 | 18 | 'visible_by' => 'Visible by', |
19 | 19 | 'restrict_visibility_to' => 'Restrict visibility to', |
@@ -13,7 +13,7 @@ |
||
13 | 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
14 | 14 | */ |
15 | 15 | global $LANG; |
16 | -$LANG = array ( |
|
16 | +$LANG = array( |
|
17 | 17 | 'position_in_list' => 'Position in list', |
18 | 18 | 'visible_by' => 'Visible by', |
19 | 19 | 'restrict_visibility_to' => 'Restrict visibility to', |
@@ -13,7 +13,7 @@ |
||
13 | 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
14 | 14 | */ |
15 | 15 | global $LANG; |
16 | -$LANG = array ( |
|
16 | +$LANG = array( |
|
17 | 17 | 'position_in_list' => 'Position in list', |
18 | 18 | 'visible_by' => 'Visible by', |
19 | 19 | 'restrict_visibility_to' => 'Restrict visibility to', |
@@ -13,7 +13,7 @@ |
||
13 | 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
14 | 14 | */ |
15 | 15 | global $LANG; |
16 | -$LANG = array ( |
|
16 | +$LANG = array( |
|
17 | 17 | 'position_in_list' => 'Position in list', |
18 | 18 | 'visible_by' => 'Visible by', |
19 | 19 | 'restrict_visibility_to' => 'Restrict visibility to', |
@@ -968,7 +968,7 @@ discard block |
||
968 | 968 | /*FOLDER */ |
969 | 969 | if ($data['id_tree'] != $dataReceived['categorie']) { |
970 | 970 | // Get name of folders |
971 | - $dataTmp = DB::query("SELECT title FROM ".prefix_table("nested_tree")." WHERE id IN %li", array($data['id_tree'],$dataReceived['categorie'])); |
|
971 | + $dataTmp = DB::query("SELECT title FROM ".prefix_table("nested_tree")." WHERE id IN %li", array($data['id_tree'], $dataReceived['categorie'])); |
|
972 | 972 | |
973 | 973 | logItems( |
974 | 974 | $dataReceived['id'], |
@@ -2090,7 +2090,7 @@ discard block |
||
2090 | 2090 | if (empty($path) === true) { |
2091 | 2091 | $path = htmlspecialchars(stripslashes(htmlspecialchars_decode($elem->title, ENT_QUOTES)), ENT_QUOTES).' '; |
2092 | 2092 | } else { |
2093 | - $path .= '→ ' . htmlspecialchars(stripslashes(htmlspecialchars_decode($elem->title, ENT_QUOTES)), ENT_QUOTES); |
|
2093 | + $path .= '→ '.htmlspecialchars(stripslashes(htmlspecialchars_decode($elem->title, ENT_QUOTES)), ENT_QUOTES); |
|
2094 | 2094 | } |
2095 | 2095 | } |
2096 | 2096 | // Build text to show user |
@@ -4593,7 +4593,7 @@ discard block |
||
4593 | 4593 | if (empty($path) === true) { |
4594 | 4594 | $path = htmlspecialchars(stripslashes(htmlspecialchars_decode($elem->title, ENT_QUOTES)), ENT_QUOTES).' '; |
4595 | 4595 | } else { |
4596 | - $path .= '→ ' . htmlspecialchars(stripslashes(htmlspecialchars_decode($elem->title, ENT_QUOTES)), ENT_QUOTES); |
|
4596 | + $path .= '→ '.htmlspecialchars(stripslashes(htmlspecialchars_decode($elem->title, ENT_QUOTES)), ENT_QUOTES); |
|
4597 | 4597 | } |
4598 | 4598 | } |
4599 | 4599 | // Build text to show user |
@@ -580,9 +580,9 @@ |
||
580 | 580 | |
581 | 581 | if ($entries['count'] > 0) { |
582 | 582 | // Now check if group fits |
583 | - for ($i=0; $i<$entries['count']; $i++) { |
|
584 | - $parsr=ldap_explode_dn($entries[$i]['dn'], 0); |
|
585 | - if (str_replace(array('CN=','cn='), '', $parsr[0]) === $SETTINGS['ldap_usergroup']) { |
|
583 | + for ($i = 0; $i < $entries['count']; $i++) { |
|
584 | + $parsr = ldap_explode_dn($entries[$i]['dn'], 0); |
|
585 | + if (str_replace(array('CN=', 'cn='), '', $parsr[0]) === $SETTINGS['ldap_usergroup']) { |
|
586 | 586 | $GroupRestrictionEnabled = true; |
587 | 587 | break; |
588 | 588 | } |