#168 Galaxia: setOwner method not working in Instance.php API

open
nobody
None
5
2012-12-08
2005-04-03
regis leroy
No

simple bug in Galaxia API on Instance.php.
In method setOwner the parameter is registered in
$this->owner and the query used to record this in
tables is using a non existent $owner variable instead
of $this->owner.
/*!
Sets the instance creator user
*/
function setOwner($user) {
$this->owner = $user;
// save database
$query = "update
`".GALAXIA_TABLE_PREFIX."instances` set `owner`=? where
`instanceId`=?";

$this->query($query,array($owner,(int)$this->instanceId));

}

weshoudk have
$this->query($query,array($this->owner,(int)$this->instanceId));

Discussion