"Correcting error \"non well formed numeric value encountered\" for modified time stamp"

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6664 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2008-04-15 16:46:46 +00:00
parent 3c4352983d
commit 66241b4a0d

View file

@ -124,7 +124,7 @@ class MediaView extends View {
return false;
}
if (isset($modified) && !empty($modified)) {
$modified = gmdate('D, d M Y H:i:s', strtotime($modified, time()).' GMT');
$modified = gmdate('D, d M Y H:i:s', strtotime($modified, time())) . ' GMT';
} else {
$modified = gmdate('D, d M Y H:i:s').' GMT';
}