From 625c6ab405fe1f9d435e0812edd36c25b74c0b69 Mon Sep 17 00:00:00 2001 From: "o.pinke" Date: Fri, 3 Mar 2023 11:07:06 +0100 Subject: [PATCH] fixed wrong date expression for published --- conlite/includes/include.con_art_overview.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/conlite/includes/include.con_art_overview.php b/conlite/includes/include.con_art_overview.php index 1a0f806..7e02e43 100644 --- a/conlite/includes/include.con_art_overview.php +++ b/conlite/includes/include.con_art_overview.php @@ -305,8 +305,7 @@ if (is_numeric($idcat) && ($idcat >= 0)) { $sortkey = $sart["artsort"]; $locked = $sart["locked"]; $redirect = $sart["redirect"]; - - $published = ($published != '1000-01-01 00:00:00') ? date($dateformat, strtotime($published)) : i18n("not yet published"); + $published = (strtotime($published) > 0) ? date($dateformat, strtotime($published)) : i18n("not yet published"); $created = date($dateformat, strtotime($created)); $modified = date($dateformat, strtotime($modified)); $alttitle = "idart" . ': ' . $idart . ' ' . "idcatart" . ': ' . $idcatart . ' ' . "idartlang" . ': ' . $idartlang;