Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mathieu
potage
Commits
29f77089
Commit
29f77089
authored
Sep 10, 2018
by
Mat
Browse files
lorsque la séquence de tri des légumes n'a pas été définie (sorted)
parent
fd037be3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/PotageBundle/Controller/MembreController.php
View file @
29f77089
...
...
@@ -174,6 +174,7 @@ class MembreController extends MasterController
*/
private
function
getOffreLegumesSorted
(
Offre
$offre
)
{
$legumesSorted
=
array
();
$sort
=
explode
(
","
,
$offre
->
getSorted
());
foreach
(
$sort
as
$k
=>
$v
)
{
...
...
@@ -185,6 +186,10 @@ class MembreController extends MasterController
}
}
}
if
(
count
(
$legumesSorted
)
!==
count
(
$offre
->
getOffreLegumes
()))
{
$legumesSorted
=
$offre
->
getOffreLegumes
();
}
return
$legumesSorted
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment