In Query.php the AddResultVar function needs a string $var but I get errors because $var is an object and many functions inside this expect a string and not an object.
It does work in one of my computers but not another - maybe some error settings are stricter in the one it does not work?
I can correct this but it would be nice to have someone who wrote this to do the corrections as I might not know all exceptions.
Marja
/**
* Adds a variable to the list of result variables.
*
* @param String $var
* @return void
*/
public function addResultVar($var){
$this->resultVars[] = $var;
$var->setDatatype($this->getDatatype($var));
$this->varLanguages[$var->getId()] = self::getLanguageTag($var);
$this->varDatatypes[$var->getId()] = $this->getDatatype($var);
}