Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
TelegramBot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Kulya
TelegramBot
Commits
a957665c
Commit
a957665c
authored
Jun 19, 2017
by
Jack'lul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use array and implode for this instead
parent
82873c03
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
DB.php
src/DB.php
+3
-7
No files found.
src/DB.php
View file @
a957665c
...
@@ -804,19 +804,15 @@ class DB
...
@@ -804,19 +804,15 @@ class DB
//New and left chat member
//New and left chat member
if
(
!
empty
(
$new_chat_members
))
{
if
(
!
empty
(
$new_chat_members
))
{
$new_chat_members_ids
=
''
;
$new_chat_members_ids
=
[]
;
foreach
(
$new_chat_members
as
$new_chat_member
)
{
foreach
(
$new_chat_members
as
$new_chat_member
)
{
if
(
$new_chat_member
instanceof
User
)
{
if
(
$new_chat_member
instanceof
User
)
{
//Insert the new chat user
//Insert the new chat user
self
::
insertUser
(
$new_chat_member
,
$date
,
$chat
);
self
::
insertUser
(
$new_chat_member
,
$date
,
$chat
);
$new_chat_members_ids
[]
=
$new_chat_member
->
getId
();
if
(
!
empty
(
$new_chat_members_ids
))
{
$new_chat_members_ids
.=
','
;
}
$new_chat_members_ids
.=
$new_chat_member
->
getId
();
}
}
}
}
$new_chat_members_ids
=
implode
(
','
,
$new_chat_members_ids
);
}
elseif
(
$left_chat_member
instanceof
User
)
{
}
elseif
(
$left_chat_member
instanceof
User
)
{
//Insert the left chat user
//Insert the left chat user
self
::
insertUser
(
$left_chat_member
,
$date
,
$chat
);
self
::
insertUser
(
$left_chat_member
,
$date
,
$chat
);
...
...
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