Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moodle-tool_lifecycle
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elc
moodle-tool_lifecycle
Commits
d78d2324
Unverified
Commit
d78d2324
authored
Jun 20, 2017
by
Tobias Reischmann
Browse files
Options
Downloads
Patches
Plain Diff
Fixed manipulating array and expecting it to be in inital state after
parent
938ea1eb
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
step/email/lib.php
+5
-3
5 additions, 3 deletions
step/email/lib.php
with
5 additions
and
3 deletions
step/email/lib.php
+
5
−
3
View file @
d78d2324
...
@@ -154,17 +154,19 @@ class email extends libbase {
...
@@ -154,17 +154,19 @@ class email extends libbase {
// Replace courses list.
// Replace courses list.
$patterns
[]
=
'##courses##'
;
$patterns
[]
=
'##courses##'
;
$courses
=
$mailentries
;
$coursesstring
=
''
;
$coursesstring
=
''
;
$coursesstring
.
=
$this
->
parse_course
(
array_pop
(
$
mailentri
es
)
->
courseid
);
$coursesstring
.
=
$this
->
parse_course
(
array_pop
(
$
cours
es
)
->
courseid
);
foreach
(
$
mailentri
es
as
$entry
)
{
foreach
(
$
cours
es
as
$entry
)
{
$coursesstring
.
=
"
\n
"
.
$this
->
parse_course
(
$entry
->
courseid
);
$coursesstring
.
=
"
\n
"
.
$this
->
parse_course
(
$entry
->
courseid
);
}
}
$replacements
[]
=
$coursesstring
;
$replacements
[]
=
$coursesstring
;
// Replace courses html.
// Replace courses html.
$patterns
[]
=
'##courses-html##'
;
$patterns
[]
=
'##courses-html##'
;
$courses
=
$mailentries
;
$coursestabledata
=
array
();
$coursestabledata
=
array
();
foreach
(
$
mailentri
es
as
$entry
)
{
foreach
(
$
cours
es
as
$entry
)
{
$coursestabledata
[
$entry
->
courseid
]
=
$this
->
parse_course_row_data
(
$entry
->
courseid
);
$coursestabledata
[
$entry
->
courseid
]
=
$this
->
parse_course_row_data
(
$entry
->
courseid
);
}
}
$coursestable
=
new
\html_table
();
$coursestable
=
new
\html_table
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
sign in
to comment