Changeset 2847

Show
Ignore:
Timestamp:
10/28/06 09:30:35 (2 years ago)
Author:
webrainstorm
Message:

Fix for #1224 and #1225

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/trunk/amp_conf/htdocs/admin/config.php

    r2846 r2847  
    133133                asort($items); 
    134134                foreach ($items as $key=>$value) { 
    135                         if (preg_match("/^(<a.+>)(.+)(<\/a>)/",$value,$matches)) { 
    136                                 echo "\t<li>".$matches[1]._($matches[2]).$matches[3]."</li>\n"; 
    137                         } else { 
    138                                 echo "\t<li><a" . 
    139                                         (($display==$key) ? ' class="current"':'') . 
    140                                         " href=\"config.php?type=".$type."&amp;display=".$key."\">"._($value)."</a></li>\n"; 
     135                        // Quick fix for #1224 and #1225  
     136                        if (isset($amp_sections[$key])) { 
     137                                if (preg_match("/^(<a.+>)(.+)(<\/a>)/",$value,$matches)) { 
     138                                        echo "\t<li>".$matches[1]._($matches[2]).$matches[3]."</li>\n"; 
     139                                } else { 
     140                                        echo "\t<li><a" . 
     141                                                (($display==$key) ? ' class="current"':'') . 
     142                                                " href=\"config.php?type=".$type."&amp;display=".$key."\">"._($value)."</a></li>\n"; 
     143                                } 
    141144                        } 
    142145                } 
Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads