mirror of
https://github.com/joomla-extensions/weblinks.git
synced 2024-06-04 15:30:48 +00:00
Fix warning while search by ID from admin
This commit is contained in:
parent
8dff15ff93
commit
966e62786a
|
@ -245,8 +245,9 @@ class WeblinksModel extends ListModel
|
||||||
{
|
{
|
||||||
if (stripos($search, 'id:') === 0)
|
if (stripos($search, 'id:') === 0)
|
||||||
{
|
{
|
||||||
|
$search = substr($search, 3);
|
||||||
$query->where($db->quoteName('a.id') . ' = :id')
|
$query->where($db->quoteName('a.id') . ' = :id')
|
||||||
->bind(':id', substr($search, 3), ParameterType::INTEGER);
|
->bind(':id', $search, ParameterType::INTEGER);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user