Skip to content
This repository has been archived by the owner on Nov 26, 2017. It is now read-only.

Commit

Permalink
Always use db instances declared by devs
Browse files Browse the repository at this point in the history
  • Loading branch information
fastslack committed Dec 22, 2011
1 parent 86cc854 commit 2786c02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/joomla/database/table.php
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ public function store($updateNulls = false)
$name = $this->_getAssetName();
$title = $this->_getAssetTitle();

$asset = JTable::getInstance('Asset', 'JTable', array('dbo' => $this->getDbo() );
$asset = JTable::getInstance('Asset', 'JTable', array('dbo' => $this->getDbo()) );
$asset->loadByName($name);

// Re-inject the asset id.
Expand Down

0 comments on commit 2786c02

Please sign in to comment.