Selaa lähdekoodia

restore default id for idfilter

root 3 vuotta sitten
vanhempi
sitoutus
ebe0f59636
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  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;