Show
Ignore:
Timestamp:
07/05/08 11:31:14 (5 months ago)
Author:
coolengineer
Message:
  • Fix to check User-Agnet header
  • #877
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/interface/index.php

    r6321 r6381  
    4949} 
    5050// Redirect for ipod touch / iPhone 
    51 if(setting::getBlogSettingGlobal('useiPhoneUI',true) && (strpos($_SERVER['HTTP_USER_AGENT'],'iPod') || strpos($_SERVER['HTTP_USER_AGENT'],'iPhone'))){ 
     51if(setting::getBlogSettingGlobal('useiPhoneUI',true) && (isset($_SERVER['HTTP_USER_AGENT']) && (strpos($_SERVER['HTTP_USER_AGENT'],'iPod') || strpos($_SERVER['HTTP_USER_AGENT'],'iPhone')))){ 
    5252    header("Location: $blogURL/i"); exit; 
    5353}