Skip to content

Commit

Permalink
Fix [joomla#33433]
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonge committed Mar 7, 2014
1 parent 46b4e10 commit 90736ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions administrator/components/com_modules/models/module.php
Expand Up @@ -458,7 +458,7 @@ public function duplicate(&$pks)

foreach ($rows as $menuid)
{
$tuples[] = '(' . (int) $table->id . ',' . (int) $menuid . ')';
$tuples[] = (int) $table->id . ',' . (int) $menuid;
}
}
else
Expand All @@ -473,7 +473,7 @@ public function duplicate(&$pks)
$query = $db->getQuery(true)
->insert($db->quoteName('#__modules_menu'))
->columns($db->quoteName(array('moduleid', 'menuid')))
->values(implode(',', $tuples));
->values($tuples)

$this->_db->setQuery($query);

Expand Down

0 comments on commit 90736ab

Please sign in to comment.