jemmy655 / sweetcron

Automatically exported from code.google.com/p/sweetcron
0 stars 0 forks source link

$active_feeds being false throws warning on items page #40

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Fresh Install
2. Go to admin > items
3. In your feeds sidebar: A PHP Error was encountered
Severity: Warning
Message: Invalid argument supplied for foreach()
Filename: admin/items.php
Line Number: 57

Please provide any additional information below.

I fixed in my install by adding a check to make sure  active_feeds is set
to an empty array if feed_model->get_active_feeds returns false.

In libraries/sweetcron.php
line 239:

if($data->active_feeds === FALSE) {
  $data->active_feeds = array();
}

Original issue reported on code.google.com by mitchell...@gmail.com on 29 Aug 2008 at 6:04

GoogleCodeExporter commented 8 years ago

Original comment by yongf...@gmail.com on 30 Aug 2008 at 1:52