/[drupal]/contributions/modules/blog_reactions/blog_reactions.module
ViewVC logotype

Diff of /contributions/modules/blog_reactions/blog_reactions.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1.2.25, Mon Mar 30 08:58:09 2009 UTC revision 1.1.2.26, Mon Mar 30 10:14:56 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  /* $Id: blog_reactions.module,v 1.1.2.24 2009/03/30 08:52:04 sanduhrs Exp $ */  /* $Id: blog_reactions.module,v 1.1.2.25 2009/03/30 08:58:09 sanduhrs Exp $ */
3    
4  /**  /**
5   * Blog reactions   * Blog reactions
# Line 197  function blog_reactions_get_item($brid) Line 197  function blog_reactions_get_item($brid)
197   */   */
198  function blog_reactions_item_exists($item) {  function blog_reactions_item_exists($item) {
199    $brid = $item->brid;    $brid = $item->brid;
200    $href = $item->href;    $href = $item->link['href'];
201    $result_brid = db_result(db_query_range("SELECT COUNT(brid) as count FROM {blog_reactions} WHERE brid='%s'", $brid, 0, 1));    $result_brid = db_result(db_query_range("SELECT COUNT(brid) as count FROM {blog_reactions} WHERE brid='%s'", $brid, 0, 1));
202    $result_href = db_result(db_query_range("SELECT COUNT(brid) as count FROM {blog_reactions} WHERE href='%s'", $href, 0, 1));    $result_href = db_result(db_query_range("SELECT COUNT(brid) as count FROM {blog_reactions} WHERE href='%s'", $href, 0, 1));
203    $result = $result_brid || $result_href;    $result = $result_brid || $result_href;

Legend:
Removed from v.1.1.2.25  
changed lines
  Added in v.1.1.2.26

  ViewVC Help
Powered by ViewVC 1.1.2