Permalink
Browse files

Fixed so rename tag works

  • Loading branch information...
1 parent e2e66cf commit 7807f1be921d49cfa492c782c5c899c0387776fc @lillem4n committed Feb 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 classes/driver/tags/mysql.php
@@ -59,7 +59,7 @@ public function get_tags($order_by = 'name')
public function rename($id, $new_name)
{
- if ( ! Tags::get_id_by_name($new_name))
+ if (Tags::get_id_by_name($new_name) !== FALSE)
{
$this->pdo->exec('UPDATE tags SET name = '.$this->pdo->quote($new_name).' WHERE id = '.$this->pdo->quote($id).';');
return TRUE;

0 comments on commit 7807f1b

Please sign in to comment.