mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-31 19:19:43 +01:00
Add check to see if extra_fields variable exists
This commit is contained in:
parent
5c9b01628c
commit
dc5e1437f0
@ -365,14 +365,16 @@
|
||||
}
|
||||
|
||||
reset($stock_fields);
|
||||
reset($extra_fields);
|
||||
if ($extra_fields) { reset($extra_fields); }
|
||||
// create strings for insertion into crosstable query below
|
||||
while(list($name,$value)=each($stock_fields)) {
|
||||
$std .= "a.".$name.",";
|
||||
}
|
||||
//$std = substr($std,0,-1);
|
||||
while(list($name,$value)=each($extra_fields)) {
|
||||
$ext .= "b.".$name.",";
|
||||
if ($extra_fields) {
|
||||
while(list($name,$value)=each($extra_fields)) {
|
||||
$ext .= "b.".$name.",";
|
||||
}
|
||||
}
|
||||
//$ext = substr($ext,0,-1);
|
||||
if (!empty($fieldlist2)) {
|
||||
|
Loading…
Reference in New Issue
Block a user