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
6fe9a1a7
Commit
6fe9a1a7
authored
5 years ago
by
Tobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dc
parent
6fc27e01
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
Api_model.php
application/models/Api_model.php
+1
-6
No files found.
application/models/Api_model.php
View file @
6fe9a1a7
...
@@ -947,7 +947,7 @@ class Api_model extends CI_Model {
...
@@ -947,7 +947,7 @@ class Api_model extends CI_Model {
$per_page
=
10
;
$per_page
=
10
;
$user_id
=
(
!
isset
(
$data
[
'auth_token'
])
||
empty
(
$data
[
'auth_token'
]))
?
''
:
$this
->
auth_token_get
(
$data
[
'auth_token'
]);
$user_id
=
(
!
isset
(
$data
[
'auth_token'
])
||
empty
(
$data
[
'auth_token'
]))
?
''
:
$this
->
auth_token_get
(
$data
[
'auth_token'
]);
//if($user_id > 0) {
//if($user_id > 0) {
$where
=
''
;
$where
=
$case
=
''
;
if
(
isset
(
$data
[
'cat_id'
])
&&
!
empty
(
$data
[
'cat_id'
]))
{
if
(
isset
(
$data
[
'cat_id'
])
&&
!
empty
(
$data
[
'cat_id'
]))
{
$where
=
' AND events.category_id='
.
$data
[
'cat_id'
];
$where
=
' AND events.category_id='
.
$data
[
'cat_id'
];
...
@@ -982,11 +982,6 @@ class Api_model extends CI_Model {
...
@@ -982,11 +982,6 @@ class Api_model extends CI_Model {
$saturday
=
date
(
'Y-m-d'
,
strtotime
(
'saturday this week'
));
$saturday
=
date
(
'Y-m-d'
,
strtotime
(
'saturday this week'
));
$case
=
"AND event_date_time.date =
$sunday
OR event_date_time.date =
$saturday
"
;
$case
=
"AND event_date_time.date =
$sunday
OR event_date_time.date =
$saturday
"
;
break
;
break
;
case
'5'
:
$sunday
=
date
(
'Y-m-d'
,
strtotime
(
'sunday this week'
));
$saturday
=
date
(
'Y-m-d'
,
strtotime
(
'saturday this week'
));
$case
=
"AND event_date_time.date =
$sunday
OR event_date_time.date =
$saturday
"
;
break
;
}
}
// $where = ' AND events.venue_id='.$data['venue_id'];
// $where = ' AND events.venue_id='.$data['venue_id'];
}
}
...
...
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