- bugfix Smarty_CacheResource_mysql example was missing strtotime() calls

This commit is contained in:
rodneyrehm
2011-10-10 19:31:34 +00:00
parent d3258767a6
commit 352cb05cf5
2 changed files with 3 additions and 2 deletions

View File

@@ -61,7 +61,7 @@ class Smarty_CacheResource_Mysql extends Smarty_CacheResource_Custom {
$this->fetch->closeCursor();
if ($row) {
$content = $row['content'];
$mtime = $row['modified'];
$mtime = strtotime($row['modified']);
} else {
$content = null;
$mtime = null;
@@ -81,7 +81,7 @@ class Smarty_CacheResource_Mysql extends Smarty_CacheResource_Custom {
protected function fetchTimestamp($id, $name, $cache_id, $compile_id)
{
$this->fetchTimestamp->execute(array('id' => $id));
$mtime = $this->fetchTimestamp->fetchColumn();
$mtime = strtotime($this->fetchTimestamp->fetchColumn());
$this->fetchTimestamp->closeCursor();
return $mtime;
}