Browse Source

Update PageController.class.php

star7th 5 năm trước cách đây
mục cha
commit
3f2df2c4a5

+ 1 - 1
server/Application/Api/Controller/PageController.class.php

@@ -319,7 +319,7 @@ class PageController extends BaseController {
         $lock = 0 ;
         $now = time() ;
         $login_user = $this->checkLogin(false);
-        $res = D("PageLock")->where(" page_id = '$page_id' and lock_to > '{$now}' ")->find() ;
+        $res = D("PageLock")->where(" page_id = '$page_id' and page_id > 0 and lock_to > '{$now}' ")->find() ;
         if( $res){
             $lock = 1 ;
         }