Skip to content

Commit

Permalink
Merge pull request #59 from hooduku/patch-1
Browse files Browse the repository at this point in the history
The dbQuote is not required.
  • Loading branch information
chdemko committed Dec 23, 2011
2 parents 0068d5d + bc7e7e1 commit 3b9086e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions administrator/components/com_weblinks/tables/weblink.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ public function store($updateNulls = false)
$user = JFactory::getUser();
if ($this->id) {
// Existing item
$this->modified = $this->_db->Quote($date->toSql());
$this->modified = $date->toSql();
$this->modified_by = $user->get('id');
} else {
// New weblink. A weblink created and created_by field can be set by the user,
// so we don't touch either of these if they are set.
if (!intval($this->created)) {
$this->created = $this->_db->Quote($date->toSql());
$this->created = $date->toSql();
}
if (empty($this->created_by)) {
$this->created_by = $user->get('id');
Expand Down

0 comments on commit 3b9086e

Please sign in to comment.