X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=index.php;h=63633b022bcbb411401e5a2e02bc86e89d66af45;hb=8acef003f115dedfe9d130cf306f63f5a0da08c3;hp=93c32ad5c66573742be5913efc541e84cb55cbd8;hpb=7efdf72a861430b2e437e31278c6eacfd4d622a0;p=mirrors%2FSokoMan.git diff --git a/index.php b/index.php index 93c32ad..63633b0 100755 --- a/index.php +++ b/index.php @@ -148,6 +148,7 @@ class Sklad_HTML extends HTML {
  • Home
  • Assistants +
  • stats
  • store
  • dispose
  • sell
  • @@ -180,7 +181,11 @@ class Sklad_HTML extends HTML {
    -
    + + + +
    +
    @@ -224,7 +229,7 @@ EOF; ); foreach($table as $id => $row) { foreach($collapse as $link => $title) - if(isset($table[$id][$link])) { + if(isset($table[$id][$link]) && isset($row[$title])) { $type = @array_shift(preg_split('/_/', $link)); if($link != $title) unset($table[$id][$link]); $table[$id][$title]=$this->link($row[$title], $type.'/'.$row[$link].'/'); @@ -621,7 +626,8 @@ class Sklad_UI { } function post_redirect_get($location, $message='', $error=false) { - $location = $this->html->internal_url($location).'?message='.urlencode($message); + $url_args = $message != '' ? '?message='.urlencode($message) : ''; + $location = $this->html->internal_url($location).$url_args; header('Location: '.$location); if($error) trigger_error($message); $location=htmlspecialchars($location);