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
8152bae9
Commit
8152bae9
authored
5 years ago
by
Tobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dc
parent
b050e20a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
Webservice_model.php
application/models/Webservice_model.php
+3
-1
No files found.
application/models/Webservice_model.php
View file @
8152bae9
...
...
@@ -1700,6 +1700,7 @@ class Webservice_model extends CI_Model {
ORDER BY EVT.event_id DESC
LIMIT
$limit
"
;
$resp
=
array
();
$result
=
$this
->
db
->
query
(
$sql
)
->
result
();
foreach
(
$result
AS
$key
=>
$rs
)
{
if
(
!
empty
(
$dates
=
explode
(
','
,
$rs
->
date_time
))
&&
count
(
$dates
)
>
0
){
...
...
@@ -1718,8 +1719,9 @@ class Webservice_model extends CI_Model {
unset
(
$result
[
$key
]);
}
unset
(
$result
[
$key
]
->
date_time
);
$resp
[]
=
$result
[
$key
];
}
$res
=
array
(
'status'
=>
1
,
'data'
=>
array
(
'events'
=>
$res
ult
,
'meta'
=>
$meta
));
$res
=
array
(
'status'
=>
1
,
'data'
=>
array
(
'events'
=>
$res
p
,
'meta'
=>
$meta
));
}
else
{
$res
=
array
(
'status'
=>
1
,
'data'
=>
array
(
'events'
=>
[],
'meta'
=>
$meta
));
}
...
...
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