Fix typo in spelling of AUTOLOGOUT in Config.php, a=chris

Chris Pollett [2019-06-11 21:Jun:th]
Fix typo in spelling of AUTOLOGOUT in Config.php, a=chris
Filename
src/configs/Config.php
src/library/UpgradeFunctions.php
diff --git a/src/configs/Config.php b/src/configs/Config.php
index 54979973f..28c82ba35 100755
--- a/src/configs/Config.php
+++ b/src/configs/Config.php
@@ -531,7 +531,7 @@ nsconddefine('TIMEZONE', 'America/Los_Angeles');
  */
 nsconddefine('SESSION_NAME', "yioopbiscuit");
 nsconddefine('CSRF_TOKEN', "YIOOP_TOKEN");
-nsconddefine('AUTOOGOUT', "3600");
+nsconddefine('AUTOLOGOUT', "3600");
 /** locations that ads can be placed in search result pages */
 nsconddefine('AD_LOCATION', "none");
 date_default_timezone_set(TIMEZONE);
diff --git a/src/library/UpgradeFunctions.php b/src/library/UpgradeFunctions.php
index 2ab0f1303..c2048bcbd 100644
--- a/src/library/UpgradeFunctions.php
+++ b/src/library/UpgradeFunctions.php
@@ -126,6 +126,7 @@ function upgradePublicHelpWiki(&$db)
                 $page_name, $locale_tag, "edit");
             if ($page_content != $page_info['PAGE'] &&
                 (in_array($page_info['EDIT_COMMENT'], ['upgrade', 'create']) ||
+                empty($page_info['PUB_DATE']) ||
                 $page_info['PUB_DATE'] < 1555802108) ) {
                 $group_model->setPageName(C\ROOT_ID, C\HELP_GROUP_ID,
                     $page_name, $page_content, $locale_tag, "upgrade",
ViewGit