--- C:/Documents and Settings/bdragon/Local Settings/Temp/TCV18290.tmp/kml.1.5.2.9.module	Thu Sep 20 12:27:06 2007
+++ C:/www/servers/gmap-pointfix.dragonbreath.local/sites/all/modules/contrib/kml/kml.module	Wed Jun 18 13:30:44 2008
@@ -550,12 +550,13 @@
  */
 function kml_format_feed($nodes = array(), $channel = array()) {
   $items = '';
+  $nodes_array = array();
   if (is_array($nodes)) {
     foreach ($nodes as $node) {
       $nodes_array[] = $node['node'];
     }
   }
-  elseif (is_resource($nodes)) {  // required for kml/node
+  elseif (db_num_rows($nodes)) {  // required for kml/node
     while ($node = db_fetch_object($nodes)) {
       $nodes_array[] = $node;
     }
