Reorganizace kodu pro generovani statistik
[mirrors/SokoMan.git] / index.php
index 8ee47b8b099b87bbe4d00ac747fe51a29bb6c7a1..02aa5252b21644ec018d8950ece2b365574d7289 100755 (executable)
--- 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 '<h3>'.T('holy primordial emptiness is all you can find here...').'</h3><br />';
                $this->table_add_images($table);
                if($class) $this->table_add_relations($table,$class);
                $this->table_add_barcodes($table);
This page took 0.146383 seconds and 4 git commands to generate.