Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
TimeOutAdmin
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TimeOut
TimeOutAdmin
Commits
7bd0c2e7
Commit
7bd0c2e7
authored
5 years ago
by
Tobin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into 'dev_production'
dc See merge request
!298
parents
72e6efba
61d154d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
Api_model.php
application/models/Api_model.php
+4
-2
No files found.
application/models/Api_model.php
View file @
7bd0c2e7
...
@@ -714,8 +714,10 @@ class Api_model extends CI_Model {
...
@@ -714,8 +714,10 @@ class Api_model extends CI_Model {
$post_data
[
'amount'
]
=
0
;
$post_data
[
'amount'
]
=
0
;
}
}
$evtData
=
$this
->
db
->
get_where
(
'event_date_time'
,
array
(
'event_id'
=>
$post_data
[
'event_id'
],
$evtData
=
$this
->
db
->
get_where
(
'event_date_time'
,
'date'
=>
$post_data
[
'event_date'
],
'time'
=>
$post_data
[
'event_time'
]));
array
(
'event_id'
=>
$post_data
[
'event_id'
],
'date'
=>
$post_data
[
'event_date'
],
'time'
=>
$post_data
[
'event_time'
],
'status'
=>
'1'
));
if
(
empty
(
$evtData
=
$evtData
->
row_array
())
||
!
isset
(
$evtData
[
'id'
])
||
if
(
empty
(
$evtData
=
$evtData
->
row_array
())
||
!
isset
(
$evtData
[
'id'
])
||
empty
(
$post_data
[
'event_date_id'
]
=
$evtData
[
'id'
])){
empty
(
$post_data
[
'event_date_id'
]
=
$evtData
[
'id'
])){
$res
=
array
(
'status'
=>
0
,
'message'
=>
'Event date or time is invalid'
,
'code'
=>
'ER06'
);
$res
=
array
(
'status'
=>
0
,
'message'
=>
'Event date or time is invalid'
,
'code'
=>
'ER06'
);
...
...
This diff is collapsed.
Click to expand it.
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