Menu

#56 Query.php AddResultVar $var type error

open
nobody
Parsers (11)
5
2008-04-15
2008-04-15
Anonymous
No

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);

}

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.