dépôts
/
ptitvelo
/
web
/
www.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[SPIP] ~maj v3.0.14-->v3.0.17
[ptitvelo/web/www.git]
/
www
/
prive
/
formulaires
/
selecteur
/
generique_fonctions.php
diff --git
a/www/prive/formulaires/selecteur/generique_fonctions.php
b/www/prive/formulaires/selecteur/generique_fonctions.php
index
a39cf78
..
7a3e79c
100644
(file)
--- a/
www/prive/formulaires/selecteur/generique_fonctions.php
+++ b/
www/prive/formulaires/selecteur/generique_fonctions.php
@@
-87,10
+87,10
@@
function picker_selected($selected, $type=''){
$id_objet = intval($captures[2]);
// Si on cherche un type et que c'est le bon, on renvoit un tableau que d'identifiants
$id_objet = intval($captures[2]);
// Si on cherche un type et que c'est le bon, on renvoit un tableau que d'identifiants
- if (is_string($type) AND $type == $objet AND ($id_objet OR
$objet=="rubrique"
)){
+ if (is_string($type) AND $type == $objet AND ($id_objet OR
in_array($objet, array('racine', 'rubrique'))
)){
$select[] = $id_objet;
}
$select[] = $id_objet;
}
- elseif(!$type AND ($id_objet OR
$objet=="rubrique"
)){
+ elseif(!$type AND ($id_objet OR
in_array($objet, array('racine', 'rubrique'))
)){
$select[] = array('objet' => $objet, 'id_objet' => $id_objet);
}
}
$select[] = array('objet' => $objet, 'id_objet' => $id_objet);
}
}