Adding some debug stuff to figure out why PHP5 is weird
authorRobert Sesek <rsesek@bluestatic.org>
Sun, 22 Jan 2006 19:15:02 +0000 (19:15 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Sun, 22 Jan 2006 19:15:02 +0000 (19:15 +0000)
includes/cachev.php

index 5f52dd3f1ee5cef57d90c86dcdc560f1287835ae..97a6b3910d34aec1d87a01eec01f7e64359a626f 100644 (file)
@@ -324,9 +324,16 @@ class cacheV
                        $latestrev = -1;
                        foreach ($history['log']['logentry'] AS $log)
                        {
+                               // WHY THE HELL DOES THIS GET HIT ON REBUILDS?
+                               if (!is_array($log))
+                               {
+                                       print_r($node);
+                                       var_dump($log);
+                                       continue;
+                               }
                                $loglist["$log[revision]"] = array(
                                        'revision'      => $log['revision'],
-                                       'author'        => $log['author']['value'],
+                                       'author'        => $log['author']['value'], // why does PHP5 hate this?
                                        'date'          => $log['date']['value'],
                                        'message'       => $log['msg']['value']
                                );