* Fix primary key of dmdb.

This commit is contained in:
朱金勇
2023-04-11 03:05:50 +00:00
parent 0a45b89acd
commit d20df48faf
5 changed files with 24 additions and 10 deletions
+2 -2
View File
@@ -595,7 +595,7 @@ class baseHelper
*/
static public function isZeroDate($date)
{
return (empty($date) or substr($date, 0, 4) == '0000');
return (empty($date) or substr($date, 0, 4) <= '1970');
}
/**
@@ -1008,7 +1008,7 @@ if (!function_exists('getallheaders')) {
function getallheaders()
{
$headers = array();
foreach ($_SERVER as $name => $value)
foreach ($_SERVER as $name => $value)
{
if (substr($name, 0, 5) == 'HTTP_')
{