diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-01-04 00:39:54 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-01-04 00:39:54 +0000 |
commit | d36996fb140d8a2f8d51116236b2828d1efedb65 (patch) | |
tree | 193fdd00c80ac4072bafcec51a0b9663e06eb76f | |
parent | 85574d7b82f9bf6ea44eb594594ae3bb9f7f8ff4 (diff) |
Remove unnecessary comments.
-rw-r--r-- | modules/tag/helpers/tag.php | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/modules/tag/helpers/tag.php b/modules/tag/helpers/tag.php index e1cb9ec6..b1505b3d 100644 --- a/modules/tag/helpers/tag.php +++ b/modules/tag/helpers/tag.php @@ -33,14 +33,10 @@ class tag_Core { if (!$tag->loaded) { $tag->name = $tag_name; $tag->count = 0; - // Need to save it now to get an id assigned. $tag->save(); } if (!$tag->has($item)) { - // Note: ORM::has() causes a database lookup. ORM::add() calls ORM::has() a second time, - // so we're doing an extra database lookup just to make sure that we don't increment the - // count value if the tag already existed. if (!$tag->add($item, $tag)) { throw new Exception("@todo {$tag->name} WAS_NOT_ADDED_TO {$item->id}"); } |