Update the $count ivar
authorRobert Sesek <rsesek@bluestatic.org>
Mon, 9 Jan 2006 08:39:41 +0000 (08:39 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Mon, 9 Jan 2006 08:39:41 +0000 (08:39 +0000)
includes/cachev.php

index 2611fc73e05726a7663a52dfabbc23ad4b83fa8b..ec852021e79282810645050eace6584099fe6773 100644 (file)
@@ -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);
                        }
                }
        }