PHP notices: Undifined variable (line 556)

oriol_e9g - September 22, 2008 - 10:47
Project:SimpleBlogroll
Version:6.x-1.3
Component:Code/Feeds
Category:bug report
Priority:minor
Assigned:filip_tc
Status:closed
Description

If I enable the PHP notices appear this warning.

notice: Undefined variable: return in .../sites/all/modules/simpleblogroll/simpleblogroll.module on line 556.

#1

filip_tc - September 22, 2008 - 11:04
Title:PHP notices» PHP notices: Undifined variable (line 556)
Priority:normal» minor
Assigned to:Anonymous» filip_tc
Status:active» fixed

Problem should only happen when no feeds are entered. To fix do the following,
Find: (lines 555-557)

  }
  return $return;
}

Replace with:
  }
  if ($return) {
    return $return;
  }
  return;
}

Thanks for the bug find. Cheers.
Committed to 6.x-1-dev.

#2

Anonymous (not verified) - October 6, 2008 - 12:33
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.