Changeset 12269 for freepbx

Show
Ignore:
Timestamp:
06/26/11 05:12:17 (2 years ago)
Author:
mbrevda
Message:

fixes #5246 - use stict comparision when comparing

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/trunk/amp_conf/htdocs/admin/libraries/components.class.php

    r12222 r12269  
    675675      $itemvalue = (isset($item['value']) ? $item['value'] : ''); 
    676676      $itemtext = (isset($item['text']) ? $item['text'] : ''); 
    677       $itemselected = ($currentvalue == $itemvalue) ? ' selected' : ''; 
     677      $itemselected = ($currentvalue === $itemvalue) ? ' selected' : ''; 
    678678       
    679679      $output .= "\t\t\t\t<option value=\"$itemvalue\"$itemselected>$itemtext</option>\n"; 
     
    720720      $itemvalue = (isset($item['value']) ? $item['value'] : ''); 
    721721      $itemtext = (isset($item['text']) ? $item['text'] : ''); 
    722       $itemchecked = ($currentvalue == $itemvalue) ? ' checked=checked' : ''; 
     722      $itemchecked = ($currentvalue === $itemvalue) ? ' checked=checked' : ''; 
    723723       
    724724      $tabindex = guielement::gettabindex();