Download & Extend

PHP notices: Undifined variable (line 556)

Project:Simple Blogroll
Version:6.x-1.3
Component:Code/Feeds
Category:bug report
Priority:minor
Assigned:filiptc
Status:closed (fixed)

Issue Summary

If I enable the PHP notices appear this warning.

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

Comments

#1

Title:PHP notices» PHP notices: Undifined variable (line 556)
Priority:normal» minor
Assigned to:Anonymous» filiptc
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

Status:fixed» closed (fixed)

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

nobody click here