Changeset 163


Ignore:
Timestamp:
03/28/2006 06:36:04 AM (6 years ago)
Author:
cirrus
Message:

Bugfix: fixed a couple of forgotten foreach bugs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/pages/search/search_suggest.php

    r157 r163  
    5959                                                                                'ip_ranges.status ASC, ip_ranges.ip_start ASC', 
    6060                                                                                $this->limit); 
    61                         foreach ($this->tpl['ip_search'] as $key => $value) { 
     61                        foreach ((array)$this->tpl['ip_search'] as $key => $value) { 
    6262                                $this->tpl['ip_search'][$key]['ip_start'] = long2ip($this->tpl['ip_search'][$key]['ip_start']); 
    6363                                $this->tpl['ip_search'][$key]['href'] = makelink(array("page" => "nodes", "node" => $this->tpl['ip_search'][$key]['id'])); 
     
    7272                                                                                'dns_zones.status ASC, dns_zones.name ASC', 
    7373                                                                                $this->limit); 
    74                         foreach ($this->tpl['dns_search'] as $key => $value) { 
     74                        foreach ((array)$this->tpl['dns_search'] as $key => $value) { 
    7575                                if($this->tpl['dns_search'][$key]['type'] == "forward") $this->tpl['dns_search'][$key]['name'] .= ".".$vars['dns']['root_zone']; 
    7676                                $this->tpl['dns_search'][$key]['href'] = makelink(array("page" => "nodes", "node" => $this->tpl['dns_search'][$key]['id'])); 
     
    8686                                                                                'nodes.name ASC', 
    8787                                                                                $this->limit); 
    88                         foreach ($this->tpl['nodes_search'] as $key => $value) { 
     88                        foreach ((array)$this->tpl['nodes_search'] as $key => $value) { 
    8989                                $this->tpl['nodes_search'][$key]['href'] = makelink(array("page" => "nodes", "node" => $this->tpl['nodes_search'][$key]['id'])); 
    9090                        } 
Note: See TracChangeset for help on using the changeset viewer.