Browse Source

restore default_id

root 3 năm trước cách đây
mục cha
commit
b4d6276225
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      html/inc/idfilter.php

+ 2 - 0
html/inc/idfilter.php

@@ -3,6 +3,8 @@ if (! defined("CONFIG")) die("Not defined");
 
 if (empty($id) and !empty($_SESSION[$page_url]['id'])) { $id = $_SESSION[$page_url]['id']; }
 
+if (empty($id) and !empty($default_id)) { $id=$default_id; }
+
 if (empty($id)) {
     header("Location: /admin/index.php");
     exit;