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
053736eb
Commit
053736eb
authored
5 years ago
by
Tobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chat issue
parent
0dd3bdd2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Webservice_model.php
application/models/Webservice_model.php
+2
-2
No files found.
application/models/Webservice_model.php
View file @
053736eb
...
...
@@ -2034,7 +2034,7 @@ class Webservice_model extends CI_Model {
$user_ids
=
''
;
foreach
(
$custIds
AS
$id
)
{
if
(
!
empty
(
$user_ids
)
&&
in_array
(
$id
,
$user_ids
)
){
if
(
(
!
empty
(
$user_ids
)
&&
in_array
(
$id
,
$user_ids
))
||
$id
==
$user_id
){
continue
;
}
$user_ids
[]
=
$id
[
'customer_id'
];
...
...
@@ -2107,7 +2107,7 @@ class Webservice_model extends CI_Model {
$user_id
=
$this
->
auth_token_get
(
$data
[
'auth_token'
]);
$toUser
=
(
is_numeric
(
$data
[
'user_id'
]))
?
$data
[
'user_id'
]
:
decode_param
(
$data
[
'user_id'
]);
if
(
empty
(
$toUser
)){
if
(
empty
(
$toUser
)
||
$user_id
==
$toUser
){
return
array
(
'status'
=>
0
,
'code'
=>
'919'
,
'message'
=>
'Something Went Wrong.. Try Again..'
);
}
$result
=
$this
->
db
->
get_where
(
'chats'
,
array
(
'from_user'
=>
$user_id
,
'to_user'
=>
$toUser
))
->
row_array
();
...
...
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