forked from science-ation/science-ation
eliminate an array_keys warning if $$fieldvar isnt set
This commit is contained in:
parent
160acc97d0
commit
13ef318f27
@ -333,7 +333,10 @@ foreach($report_stock as $n=>$v) {
|
||||
$report['loc'] = array();
|
||||
|
||||
$fieldvar = "report_{$report['type']}s_fields";
|
||||
$allow_fields = array_keys($$fieldvar);
|
||||
if(is_array($$fieldvar))
|
||||
$allow_fields = array_keys($$fieldvar);
|
||||
else
|
||||
$allow_fields=array();
|
||||
|
||||
$q = mysql_query("SELECT * FROM reports_items
|
||||
WHERE reports_id='{$report['id']}'
|
||||
|
Loading…
x
Reference in New Issue
Block a user