Fix: strpos($InfoFieldList[4], 'extra') generates a warning if $InfoFieldList[4] does not exist (#30483)
This commit is contained in:
parent
2c0e7fb4ad
commit
6b80e2000b
1 changed files with 1 additions and 1 deletions
|
|
@ -8263,7 +8263,7 @@ abstract class CommonObject
|
|||
|
||||
$sql = "SELECT ".$keyList;
|
||||
$sql .= ' FROM '.$this->db->prefix().$InfoFieldList[0];
|
||||
if (strpos($InfoFieldList[4], 'extra') !== false) {
|
||||
if (isset($InfoFieldList[4]) && strpos($InfoFieldList[4], 'extra') !== false) {
|
||||
$sql .= ' as main';
|
||||
}
|
||||
if ($selectkey == 'rowid' && empty($value)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue