소스 검색

提交数据

lvhao 5 달 전
부모
커밋
d3654f7bb3
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      core/CoreApp/core/Lin_Controller.php

+ 4 - 1
core/CoreApp/core/Lin_Controller.php

@@ -45,7 +45,10 @@ abstract class Start_Controller extends Lin_Controller {
 			    header("Location:/user/");
 			}
 		}
-		$this->user->save(['lasttime'=>time()],$u['id']);
+		if(!empty($u)){
+			$this->user->save(['lasttime'=>time()],$u['id']);
+		}
+		
 		$this->load->library('template');
 		//设置前台模板路径
 		$this->template->_init($setting['theme']);