]> git.mjollnir.org Git - s9y.git/commitdiff
debug output
authorgarvinhicking <garvinhicking>
Fri, 8 Jul 2005 17:51:57 +0000 (17:51 +0000)
committergarvinhicking <garvinhicking>
Fri, 8 Jul 2005 17:51:57 +0000 (17:51 +0000)
plugins/serendipity_event_spartacus/serendipity_event_spartacus.php

index 941ff5fa1c542285855ecdcc2e1f0ad3dfdee07c..aa23f0856105e468319a561f7e710b2a70acb777 100644 (file)
@@ -495,7 +495,11 @@ class serendipity_event_spartacus extends serendipity_event
         
         $mirrors = $this->getMirrors('files', true);
         $mirror  = $mirrors[$this->get_config('mirror_files', 0)];
-
+        
+        if (!is_array($tree) || !is_array($tree[0]['children'])) {
+           echo "DEBUG: Tree not an array, but: " . print_r($tree, true) . ". Please report this bug.<br />\n";
+        }
+        
         foreach($tree[0]['children'] AS $idx => $subtree) {
             if ($subtree['tag'] == 'package') {
                 $i++;