Skip to content

Commit

Permalink
Avoid Undefined variable PHP notice
Browse files Browse the repository at this point in the history
  • Loading branch information
ginatrapani committed Aug 10, 2012
1 parent f59a8bc commit 76a98f0
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -68,13 +68,13 @@ public function crawl() {
// Get posts for last 7 days
$number_days = 7;
$post_dao = DAOFactory::getDAO('PostDAO');
$last_week_of_posts = $post_dao->getAllPostsByUsernameOrderedBy($instance->network_username,
$network=$instance->network, $count=0, $order_by="pub_date", $in_last_x_days = $number_days,
$iterator = false, $is_public = false);

$insights_plugin_registrar = PluginRegistrarInsights::getInstance();

foreach ($instances as $instance) {
$last_week_of_posts = $post_dao->getAllPostsByUsernameOrderedBy($instance->network_username,
$network=$instance->network, $count=0, $order_by="pub_date", $in_last_x_days = $number_days,
$iterator = false, $is_public = false);
$insights_plugin_registrar->runRegisteredPluginsInsightGeneration($instance, $last_week_of_posts,
$number_days);
$logger->logUserSuccess("Completed insight generation for ".$instance->network_username." on ".
Expand Down

0 comments on commit 76a98f0

Please sign in to comment.