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