Skip to content

Commit

Permalink
Fix Flashback posts [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
ginatrapani committed Aug 27, 2012
1 parent 2ef7324 commit c7483e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webapp/_lib/model/class.PostMySQLDAO.php
Expand Up @@ -1687,6 +1687,8 @@ public function getOnThisDayFlashbackPosts($author_id, $network, $from_date=null
);
if (!isset($from_date)) {
$from_date = 'CURRENT_DATE()';
} else {
$from_date = "'$from_date'";
}
$q = "SELECT po.*, po.id AS post_key, po.pub_date + interval #gmt_offset# hour as adj_pub_date, ";
$q .= "pl.place_type, pl.name, pl.full_name, pl.country_code, pl.country, pl.longlat, pl.bounding_box ";
Expand All @@ -1700,7 +1702,6 @@ public function getOnThisDayFlashbackPosts($author_id, $network, $from_date=null
$q .= "ORDER BY pub_date DESC ";

if ($this->profiler_enabled) Profiler::setDAOMethod(__METHOD__);

$ps = $this->execute($q, $vars);
$all_post_rows = $this->getDataRowsAsArrays($ps);

Expand Down

0 comments on commit c7483e5

Please sign in to comment.