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
7147479e
Commit
7147479e
authored
Feb 16, 2016
by
Armando Lüscher
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #101 from akalongman/excody_fix
Excody fix
parents
aae0d911
8010d2a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
12 deletions
+7
-12
DB.php
src/DB.php
+7
-12
No files found.
src/DB.php
View file @
7147479e
...
@@ -509,22 +509,17 @@ class DB
...
@@ -509,22 +509,17 @@ class DB
self
::
insertUser
(
$forward_from
,
$forward_date
);
self
::
insertUser
(
$forward_from
,
$forward_date
);
$forward_from
=
$forward_from
->
getId
();
$forward_from
=
$forward_from
->
getId
();
}
}
//Insert the new chat user
if
(
$new_chat_participant
)
{
$new_chat_participant
=
''
;
//Insert the new chat user
if
(
is_object
(
$new_chat_participant
))
{
self
::
insertUser
(
$new_chat_participant
,
$date
,
$chat
);
self
::
insertUser
(
$new_chat_participant
,
$date
,
$chat
);
$new_chat_participant
=
$new_chat_participant
->
getId
();
$new_chat_participant
=
$new_chat_participant
->
getId
();
}
}
elseif
(
$left_chat_participant
)
{
//Insert the left chat user
//Insert the left chat user
$left_chat_participant
=
''
;
if
(
is_object
(
$left_chat_participant
))
{
self
::
insertUser
(
$left_chat_participant
,
$date
,
$chat
);
self
::
insertUser
(
$left_chat_participant
,
$date
,
$chat
);
$left_chat_participant
=
$left_chat_participant
->
getId
();
$left_chat_participant
=
$left_chat_participant
->
getId
();
}
}
try
{
try
{
//message Table
//message Table
$sth
=
self
::
$pdo
->
prepare
(
'INSERT IGNORE INTO `'
.
TB_MESSAGE
.
'`
$sth
=
self
::
$pdo
->
prepare
(
'INSERT IGNORE INTO `'
.
TB_MESSAGE
.
'`
...
@@ -604,8 +599,8 @@ class DB
...
@@ -604,8 +599,8 @@ class DB
$sth
->
bindParam
(
':caption'
,
$caption
,
\PDO
::
PARAM_STR
);
$sth
->
bindParam
(
':caption'
,
$caption
,
\PDO
::
PARAM_STR
);
$sth
->
bindParam
(
':contact'
,
$contact
,
\PDO
::
PARAM_STR
);
$sth
->
bindParam
(
':contact'
,
$contact
,
\PDO
::
PARAM_STR
);
$sth
->
bindParam
(
':location'
,
$location
,
\PDO
::
PARAM_STR
);
$sth
->
bindParam
(
':location'
,
$location
,
\PDO
::
PARAM_STR
);
$sth
->
bindParam
(
':new_chat_participant'
,
$new_chat_paticipant
,
\PDO
::
PARAM_INT
);
$sth
->
bindParam
(
':new_chat_participant'
,
$new_chat_pa
r
ticipant
,
\PDO
::
PARAM_INT
);
$sth
->
bindParam
(
':left_chat_participant'
,
$left_chat_paticipant
,
\PDO
::
PARAM_INT
);
$sth
->
bindParam
(
':left_chat_participant'
,
$left_chat_pa
r
ticipant
,
\PDO
::
PARAM_INT
);
$sth
->
bindParam
(
':new_chat_title'
,
$new_chat_title
,
\PDO
::
PARAM_STR
);
$sth
->
bindParam
(
':new_chat_title'
,
$new_chat_title
,
\PDO
::
PARAM_STR
);
//Array of Photosize
//Array of Photosize
...
...
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