IdoQuery: Handle non translated customvars properly

This commit is contained in:
Johannes Meyer 2015-06-18 16:43:12 +02:00
parent fb9641fb3c
commit f5554b6aa0
1 changed files with 3 additions and 1 deletions

View File

@ -872,7 +872,9 @@ abstract class IdoQuery extends DbQuery
protected function getCustomvarColumnName($customvar)
{
return $this->customVars[strtolower($customvar)] . '.varvalue';
if (isset($this->customVars[($customvar = strtolower($customvar))])) {
$this->customVars[strtolower($customvar)] . '.varvalue';
}
}
public function aliasToColumnName($alias)