From 2b27f5e465045b99367f5c851f58ac37b46cc88c Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 9 Jan 2006 08:39:41 +0000 Subject: [PATCH] Update the $count ivar --- includes/cachev.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/includes/cachev.php b/includes/cachev.php index 2611fc7..ec85202 100644 --- a/includes/cachev.php +++ b/includes/cachev.php @@ -90,9 +90,10 @@ class cacheV 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); } @@ -104,9 +105,9 @@ class cacheV $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); } } } -- 2.43.5