浏览代码

Fix: When session auto-start not enabled, undefined var notice for

pdontthink 18 年之前
父节点
当前提交
be5f8591fb
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      include/init.php

+ 1 - 0
include/init.php

@@ -203,6 +203,7 @@ if (!isset($session_name) || !$session_name) {
  * if session.auto_start is On then close the session
  */
 $sSessionAutostartName = session_name();
+$sCookiePath = null;
 if ((isset($sSessionAutostartName) || $sSessionAutostartName == '') &&
      $sSessionAutostartName !== $session_name) {
     $sCookiePath = ini_get('session.cookie_path');