Re: two questions about the source code of instance.php
another question about the getInstance() in instance.php
$query = "select * from `".GALAXIA_TABLE_PREFIX."instance_activities` where `instanceId`=?";
$this->query($query,arrayint)$instanceId;
while ($res = $this->fetchRow())
{
$this->activities[] = $res;
}
if we call it while the instance is still running, instead of just starting up, the existed content will be hold on, some of the added activies will be repeated in the array. could it be changed to:
$this->activities = array();
$query = "select * from `".GALAXIA_TABLE_PREFIX."instance_activities` where `instanceId`=?";
$this->query($query,arrayint)$instanceId;
while ($res = $this->fetchRow())
{
$this->activities[] = $res;
}