X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=index.php;h=d4c3cb3c5e151873f8282a4554465f8aa8ae07c6;hb=98f4d4120541dd9e7b9026a993afcdf055d93217;hp=3200b84314f4205b17f21935d39a175c55009b2c;hpb=cd65d0c40fb1b5f385079fe028d377a5b9b80562;p=mirrors%2FSokoMan.git diff --git a/index.php b/index.php index 3200b84..d4c3cb3 100755 --- a/index.php +++ b/index.php @@ -421,6 +421,7 @@ EOF; 'status_id' => 'status_name', 'item_author' => 'item_author_backend', 'item_customer' => 'item_customer', + 'lock_id' => 'lock_name', ); foreach($table as $id => $row) { @@ -1097,8 +1098,8 @@ class Sklad_UI { //Sephirot: if(!isset($PATH_CHUNKS[1])) $PATH_CHUNKS[1]=''; if($_SERVER['REQUEST_METHOD'] != 'POST' && $PATH_CHUNKS[1]!='barcodeimg' && $PATH_CHUNKS[1]!='api') { //TODO: tyhle podminky naznacujou, ze je v navrhu nejaka drobna nedomyslenost... - $result = $this->db->safe_query_fetch("SELECT * FROM `lock`;"); - $headerhtml = !empty($result) ? T('There are locks:').' '.$this->html->render_item_table($result) : ''; + $result = $this->db->safe_query_fetch("SELECT * FROM `lock`;"); + $headerhtml = !empty($result) ? T('There are locks:').' '.$this->html->render_item_table($result) : ''; echo $this->html->header($PATH_INFO,$this->db->auth->get_user(),$headerhtml); } switch($PATH_CHUNKS[1]) { //TODO: Move some branches to plugins if possible