32
1
mirror of https://github.com/joomla-extensions/weblinks.git synced 2024-12-27 10:22:38 +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 // Set ordering to the last item if not set
if (empty($table->ordering)) if (empty($table->ordering))
{ {
$db = JFactory::getDbo(); $db = $this->getDbo();
$query = $db->getQuery(true) $query = $db->getQuery(true)
->select('MAX(ordering)') ->select('MAX(ordering)')
->from($db->quoteName('#__weblinks')); ->from($db->quoteName('#__weblinks'));