function exec_build()
{
$result = $this->registry->db->query_first("SELECT MAX(revision) AS max FROM {$this->hash}");
+ $this->count = $result['max'];
// time to go from the start
- if ($result['max'] == 0)
+ if ($this->count == 0)
{
$this->build(null);
}
$tree = $this->registry->xml->parse($query);
- if ($tree['info']['entry']['revision'] != $result['max'])
+ if ($tree['info']['entry']['revision'] != $this->count)
{
- $this->build($result['max']);
+ $this->build($this->count);
}
}
}