Mercurial > hg > mgallery
changeset 287:290a42c52e35
Use instanceOf instead of is_object().
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 21 May 2019 14:00:36 +0300 |
parents | 878d2a772fd6 |
children | cad9e459e12f |
files | mgallery.php |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mgallery.php Mon May 20 15:11:08 2019 +0300 +++ b/mgallery.php Tue May 21 14:00:36 2019 +0300 @@ -353,7 +353,7 @@ global $pageLang, $pageCharset; $pageLocale = strtolower($pageLang)."_".strtoupper($pageLang).".".$pageCharset; setlocale(LC_TIME, $pageLocale); - return strftime("%d %b %Y (%H:%M:%S)", is_object($stamp) ? $stamp->getTimestamp() : $stamp); + return strftime("%d %b %Y (%H:%M:%S)", ($stamp instanceOf DateTime) ? $stamp->getTimestamp() : $stamp); }