Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
joyride phase2
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
Jansa Jose
joyride phase2
Commits
fc802143
Commit
fc802143
authored
6 years ago
by
Jansa Jose
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into 'dev_production'
duplicate ride See merge request
!2
parents
38e1bdae
1c6efe3d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Webservices.php
application/controllers/Webservices.php
+2
-2
No files found.
application/controllers/Webservices.php
View file @
fc802143
...
...
@@ -2661,7 +2661,7 @@ public function end_ride_update_post(){
$headers
=
apache_request_headers
();
$data
=
(
array
)
json_decode
(
file_get_contents
(
"php://input"
));
if
(
isset
(
$data
[
'ride_id'
])
&&
strlen
(
trim
(
$data
[
'ride_id'
],
" "
))
>
0
&&
isset
(
$data
[
'departure_date'
])
&&
isset
(
$data
[
'days'
])
&&
strlen
(
trim
(
$data
[
'departure_date'
],
" "
))
>
0
&&
isset
(
$data
[
'detour_time'
])
&&
strlen
(
trim
(
$data
[
'detour_time'
],
" "
))
>
0
)
{
if
(
isset
(
$data
[
'ride_id'
])
&&
strlen
(
trim
(
$data
[
'ride_id'
],
" "
))
>
0
&&
isset
(
$data
[
'departure_date'
])
&&
strlen
(
trim
(
$data
[
'departure_date'
],
" "
))
>
0
&&
isset
(
$data
[
'detour_time'
])
&&
strlen
(
trim
(
$data
[
'detour_time'
],
" "
))
>
0
)
{
$result
=
$this
->
Webservice_model
->
duplicate_ride
(
$data
);
if
(
$result
[
'status'
]
==
'success'
){
$res
=
array
(
'status'
=>
'success'
);
...
...
@@ -2672,7 +2672,7 @@ public function end_ride_update_post(){
$res
=
array
(
"status"
=>
"error"
,
"error"
=>
"Not Valid"
,
"message"
=>
"A
uthtoken is not vali
d"
"message"
=>
"A
ll Field is Require
d"
);
}
print
json_encode
(
$res
);
...
...
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