32
1
mirror of https://github.com/joomla-extensions/weblinks.git synced 2024-12-26 18:10:11 +00:00
This commit is contained in:
George Wilson 2014-11-05 16:43:14 +00:00
parent e2c472aca8
commit cc7b6f5602

View File

@ -248,7 +248,7 @@ class WeblinksModelWeblink extends JModelAdmin
// Set ordering to the last item if not set
if (empty($table->ordering))
{
$db = JFactory::getDbo();
$db = $this->getDbo();
$query = $db->getQuery(true)
->select('MAX(ordering)')
->from($db->quoteName('#__weblinks'));