This commit is contained in:
George Wilson 2014-11-05 16:43:14 +00:00
parent e2c472aca8
commit cc7b6f5602
1 changed files with 1 additions and 1 deletions

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'));