[pLog-svn] r7266 - plugins/branches/lifetype-1.2/moblog/install
jondaley at devel.lifetype.net
jondaley at devel.lifetype.net
Sat Jan 13 06:21:30 EST 2024
Author: jondaley
Date: 2024-01-13 06:21:30 -0500 (Sat, 13 Jan 2024)
New Revision: 7266
Modified:
plugins/branches/lifetype-1.2/moblog/install/moblog.php
Log:
if date not able to be parsed, simply use current date, rather than a 10/10/2000 or some generic 0 looking date
Modified: plugins/branches/lifetype-1.2/moblog/install/moblog.php
===================================================================
--- plugins/branches/lifetype-1.2/moblog/install/moblog.php 2024-01-13 11:20:28 UTC (rev 7265)
+++ plugins/branches/lifetype-1.2/moblog/install/moblog.php 2024-01-13 11:21:30 UTC (rev 7266)
@@ -286,7 +286,9 @@
POST_STATUS_PUBLISHED,
0
);
-$article->setDateObject(new Timestamp(Timestamp::parseDate($request->getDate())));
+$date = $request->getDate();
+if($date)
+ $article->setDateObject(new Timestamp(Timestamp::parseDate($date)));
// enable or disable comments by default depending on the current config
$commentsEnabled = $blogSettings->getValue( "comments_enabled" );
More information about the pLog-svn
mailing list