X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;ds=sidebyside;f=index.php;h=f03be33f7158c8d33a1009488de0c27e99ae9e28;hb=c1d9cefaa56d3fdd0ebc21a19a2abcb082108ed4;hp=36c59f153fab4ef6b3c69b13768817ba5109417b;hpb=a5a2984d01d1a3596ff904b212f20999d5d6dbc4;p=mirrors%2FSokoMan.git diff --git a/index.php b/index.php index 36c59f1..f03be33 100755 --- a/index.php +++ b/index.php @@ -1052,7 +1052,8 @@ class Sklad_UI { } function check_locks() { - $result = $this->db->safe_query_fetch("SELECT * FROM `lock`;"); + $user = $this->db->quote($this->db->auth->get_user_id()); + $result = $this->db->safe_query_fetch("SELECT * FROM `lock` WHERE `lock_author` != $user;"); if(!empty($result)) { echo T('There are locks:').' '.$this->html->render_item_table($result, 'lock'); $this->post_redirect_get('', 'There are locks!', true);