Skip to content

Commit

Permalink
Avoid PHP notice undefined variable [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
ginatrapani committed Jul 2, 2012
1 parent 1d84c8e commit be7dfa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/_lib/model/class.FollowerCountMySQLDAO.php
Expand Up @@ -184,7 +184,7 @@ public function getHistory($network_user_id, $network, $units, $limit=10, $befor
}
} elseif ($units=='MONTH') {
$current_day_of_year = date('n');
$before_date_day_of_year = date('n', strtotime($before_date));
$before_date_month_of_year = date('n', strtotime($before_date));
$difference = $current_month_of_year - $before_date_month_of_year;
if ($milestone['will_take'] > $difference) {
$milestone['will_take'] = $milestone['will_take'] + $difference;
Expand Down

0 comments on commit be7dfa5

Please sign in to comment.