Sometimes Certain Feeds Aren't Updated

ncy - January 29, 2009 - 21:30
Project:SimpleBlogroll
Version:6.x-1.4
Component:Code/Feeds
Category:bug report
Priority:normal
Assigned:Unassigned
Status:fixed
Description

i suspect it's when the feeds are missing titles, and then the item gets assigned the value 'NULL_EMPTY'. i had to add "&& $item != 'NULL_EMPTY'" on the if-statement in this block of code in simpleblogroll.module:

function _simpleblogroll_modify_db($op, $feedurl = '') {
      ...
      case 'update':
        if ($item != '' && $item != 'NULL_EMPTY') {
          $query_check_for_item = db_query('SELECT feed_title, last_item '
              .'FROM {simpleblogroll} '
              ."WHERE last_item = '%s'",
              $item
              );
      }
      ...
}

#1

filip_tc - November 11, 2009 - 17:42
Status:needs review» patch (to be ported)

Yes, it seems to fix the problem. Porting ASAP.

#2

filip_tc - November 11, 2009 - 18:47
Status:patch (to be ported)» fixed

Committed. Should be 1.5 once D.o has completed the cron cycle.

 
 

Drupal is a registered trademark of Dries Buytaert.