Fix Uncaught TypeError when clicking the SQL tab

Fixes #14373

Signed-off-by: Isaac Bennetch <bennetch@gmail.com>
This commit is contained in:
Isaac Bennetch 2018-06-09 11:05:03 -04:00
parent aa6ffda43c
commit 416e5c5e30

View File

@ -410,7 +410,7 @@ class SqlQueryForm
$html .= '<select name="id_bookmark" id="id_bookmark">' . "\n";
$html .= '<option value="">&nbsp;</option>' . "\n";
foreach ($bookmark_list as $bookmark) {
$html .= '<option value="' . htmlspecialchars($bookmark->getId()) . '"'
$html .= '<option value="' . htmlspecialchars((string)$bookmark->getId()) . '"'
. ' data-varcount="' . $bookmark->getVariableCount()
. '">'
. htmlspecialchars($bookmark->getLabel())