mirror of
https://github.com/smarty-php/smarty.git
synced 2025-10-28 10:51:37 +01:00
- bugfix Smarty_CacheResource_mysql example was missing strtotime() calls
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user