$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');
}
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);