X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=index.php;h=02aa5252b21644ec018d8950ece2b365574d7289;hb=049a7400bfbbf97a3f5a430bed36668c069db589;hp=8ee47b8b099b87bbe4d00ac747fe51a29bb6c7a1;hpb=1b9304b85cd5038373a84e54ba1bf4dedf67a90d;p=mirrors%2FSokoMan.git diff --git a/index.php b/index.php index 8ee47b8..02aa525 100755 --- a/index.php +++ b/index.php @@ -224,8 +224,8 @@ EOF; $assistants=array(); foreach(scandir(DIR_ASSISTANTS) as $item) { if($item == '.' || $item == '..') continue; - $item = preg_replace('/\.inc\.php$/','',$item); - $assistants[$item] = "assistant/$item"; + $item = preg_replace('/\.inc\.php$/','',$item,-1,$count); + if($count) $assistants[$item] = "assistant/$item"; } $tables=array('item','model','category','producer','vendor','room','status'); @@ -365,6 +365,7 @@ EOF; } function render_item_table($table,$class=false) { + if(empty($table)) return '

'.T('holy primordial emptiness is all you can find here...').'


'; $this->table_add_images($table); if($class) $this->table_add_relations($table,$class); $this->table_add_barcodes($table);