Wiki: Fix for substr() on DateTime

Author: @TheTomcat14
pull/4737/head
TheTomcat14 2 years ago committed by GitHub
parent d0f9f5f920
commit c7ae3f358e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      main/wiki/wiki.inc.php

@ -2102,6 +2102,11 @@ class Wiki
$group_name = $group_properties ? $group_properties['name'] : ''; $group_name = $group_properties ? $group_properties['name'] : '';
$allow_send_mail = false; //define the variable to below $allow_send_mail = false; //define the variable to below
$email_assignment = null; $email_assignment = null;
if (!is_string($lastime) && get_class($lastime) == 'DateTime') {
$lastime = $lastime->format('Y-m-d H:i:s');
}
if ($type == 'P') { if ($type == 'P') {
//if modifying a wiki page //if modifying a wiki page
//first, current author and time //first, current author and time

Loading…
Cancel
Save