Ignore:
Timestamp:
12/10/2008 04:45:22 PM (3 years ago)
Author:
Ernest0x
Message:

PHP 5.x fixes (mostly fixes for warnings and notices)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/pages/gmap/gmap_xml.php

    r137 r187  
    3030                 
    3131                $node = $db->get('latitude, longitude', 'nodes', "id = ".intval(get('node'))); 
    32                 $node = $node[0]; 
    33                  
     32                $node = isset($node[0])?$node[0]:''; 
     33 
     34                $having = ''; 
    3435                if (get('node') != '') $having .= ($having!=''?' OR ':'')."id = ".intval(get('node')); 
    3536                if (get('show_p2p') == 1) $having .= ($having!=''?' OR ':'').'total_p2p > 0'; 
     
    5152                        'nodes.id' . 
    5253                        ($having!=''?' HAVING '.$having:'')); 
    53                 $xml .= "<?xml version='1.0' encoding='".$lang['charset']."' standalone='yes'?>\r";  
     54                $xml = "<?xml version='1.0' encoding='".$lang['charset']."' standalone='yes'?>\r";  
    5455                $xml .= "<wind>\r"; 
    5556                $xml .= "<nodes>\r"; 
     
    8384                $xml .= "</nodes>\r"; 
    8485                 
     86                $where = ''; 
    8587                if (get('show_links_p2p') == 1) $where .= ($where!=''?' OR ':'')."p2p.type = 'p2p'"; 
    8688                if (get('show_links_client') == 1) $where .= ($where!=''?' OR ':'')."clients.type = 'client'"; 
Note: See TracChangeset for help on using the changeset viewer.