Guest Posted January 29, 2007 Share Posted January 29, 2007 Hey, When I look at cached search engine results for my site they all have the following error message at the top of the page: Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/yexmyeut/public_html/store/includes/application_top.php on line 234 This error message does not show when I view the site normally. Line 234 and surrounding lines are shown below with their respective line numbers: 230 $X301_redirect = false; 231 if ($spider_flag) { 232 if (is_array($_GET) && (sizeof($_GET) > 0)) { 233 reset($_GET); 234 while (list($key, $value) = each($_GET)) { 235 if (in_array($key,tep_session_name())) { 236 // session id in url - ignore for new url and activate 301 redirect 237 $X301_redirect = true; 238 } else { 239 // add normal parameter to url 240 $p_str .= $key . '=' . rawurlencode(stripslashes($value)) . '&'; 241 } 242 } 243 } Thanks in advance for any help. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.