Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
a43af409
Commit
a43af409
authored
Dec 24, 2008
by
Nigel McNie
Browse files
When setting view access, don't require that the caller pass in a start and stop date.
parent
ced8c4f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/view.php
View file @
a43af409
...
...
@@ -568,8 +568,12 @@ class View {
foreach
(
$accessdata
as
$item
)
{
$accessrecord
=
new
StdClass
;
$accessrecord
->
view
=
$this
->
get
(
'id'
);
$accessrecord
->
startdate
=
db_format_timestamp
(
$item
[
'startdate'
]);
$accessrecord
->
stopdate
=
db_format_timestamp
(
$item
[
'stopdate'
]);
if
(
isset
(
$item
[
'startdate'
]))
{
$accessrecord
->
startdate
=
db_format_timestamp
(
$item
[
'startdate'
]);
}
if
(
isset
(
$item
[
'stopdate'
]))
{
$accessrecord
->
stopdate
=
db_format_timestamp
(
$item
[
'stopdate'
]);
}
switch
(
$item
[
'type'
])
{
case
'public'
:
case
'loggedin'
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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