Skip to content

Commit

Permalink
Use variable prior to return
Browse files Browse the repository at this point in the history
  • Loading branch information
thekabal committed Jun 10, 2016
1 parent b723ae1 commit 9f13c47
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion classes/News/NewsGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public function selectNewsByDay($day)
$stmt->bindValue(':end', $day . ' 23:59:59');
$stmt->execute();
\Tki\Db::logDbErrors($this->pdo_db, $this->pdo_db, $sql, __LINE__, __FILE__); // Log errors, if there are any
return $stmt->fetchAll(\PDO::FETCH_ASSOC);
$return_value = $stmt->fetchAll(\PDO::FETCH_ASSOC);
return $return_value;
}
}

0 comments on commit 9f13c47

Please sign in to comment.