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
f013f40c
Unverified
Commit
f013f40c
authored
Oct 10, 2017
by
Armando Lüscher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correctly check for empty value, instead of using empty().
Fixes #670
parent
caca27f8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
CHANGELOG.md
CHANGELOG.md
+1
-0
InlineKeyboardButton.php
src/Entities/InlineKeyboardButton.php
+1
-1
No files found.
CHANGELOG.md
View file @
f013f40c
...
...
@@ -13,6 +13,7 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c
### Fixed
-
SQL update script for version 0.44.1-0.45.0.
-
Issues found by Scrutinizer (Type hints and return values).
-
Check inline keyboard button parameter value correctly.
### Security
## [0.49.0] - 2017-09-17
...
...
src/Entities/InlineKeyboardButton.php
View file @
f013f40c
...
...
@@ -64,7 +64,7 @@ class InlineKeyboardButton extends KeyboardButton
$num_params
=
0
;
foreach
([
'url'
,
'callback_data'
,
'switch_inline_query'
,
'switch_inline_query_current_chat'
,
'pay'
]
as
$param
)
{
if
(
!
empty
(
$this
->
getProperty
(
$param
))
)
{
if
(
$this
->
getProperty
(
$param
,
''
)
!==
''
)
{
$num_params
++
;
}
}
...
...
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