title: Warning: strlen() expects parameter 1 to be string, array given in /includes/functions/general.php on line 159
body: <p>I have this error:</p>
  
  <blockquote>
    <p>Warning: strlen() expects parameter 1 to be string, array given in /includes/functions/general.php on line 159</p>
  </blockquote>
  
  <p>in file:</p>
  
  <pre><code>function tep_get_all_get_params($exclude_array = '') {
      global $HTTP_GET_VARS;
  
      if (!is_array($exclude_array)) $exclude_array = array();
  
      $get_url = '';
      if (is_array($HTTP_GET_VARS) &amp;&amp; (sizeof($HTTP_GET_VARS) &gt; 0)) {
        reset($HTTP_GET_VARS);
        while (list($key, $value) = each($HTTP_GET_VARS)) {
          if ( (strlen($value) &gt; 0) &amp;&amp; ($key != tep_session_name()) &amp;&amp; ($key != 'error') &amp;&amp; (!in_array($key, $exclude_array)) &amp;&amp; ($key != 'x') &amp;&amp; ($key != 'y') ) { // THIS IS 159 LINE
            $get_url .= $key . '=' . rawurlencode(stripslashes($value)) . '&amp;';
          }
        }
      }
  
      return $get_url;
    }
  </code></pre>
  
  <p>Could someone help me with this?</p>