title: strlen() expects parameter 1 to be string, array given
body: <p>I have an older site using phorm.  When the form is submitted I get this error:</p>
  
  <p>Warning: strlen() expects parameter 1 to be string, array given in /home/user/public_html/form/phorm.php on line 2015</p>
  
  <p>I know this is because of an upgrade to php 5.3, is there an easy method to fix that line of code to make my forms work again?</p>
  
  <pre><code> if (strlen($PHORM_ALERTTO) &amp;&amp; !strlen($PHORM_TO) &amp;&amp; !$PHORM_INFONLY &amp;&amp; !$ph_GotData) {
      $PHORM_TO = $PHORM_ALERTTO; //THIS IS LINE 2015
  
  
  
  
  
   Read the mail template file(s) and mail it (them) to the user */
    $ph_section = "user template";
    if (strlen($PHORM_ALERTTO) &amp;&amp; !strlen($PHORM_TO) &amp;&amp; !$PHORM_INFONLY &amp;&amp; !$ph_GotData) {
      $PHORM_TO = $PHORM_ALERTTO; //THIS IS LINE 2015
      settype($PHORM_TO, "array");
    }
    if (isset($PHORM_TMPL) &amp;&amp; isset($PHORM_TO) &amp;&amp; !$ph_Abort) {
      if ($ph_debug2) echo "&lt;B&gt;JS:&lt;/B&gt; Mail Template(s)&lt;BR&gt;";
  
      if (count($PHORM_TMPL) &gt; $ph_MaxTMPL) $ph_Alerts['120'] = ph_Message("A120");
  
      list(,$fPHORM_TO)      = each($PHORM_TO);
      list(,$fPHORM_SUBJECT) = each($PHORM_SUBJECT);
  
      while ($ph_MaxTMPL-- &amp;&amp; list($ph_key, $lPHORM_TMPL) = each($PHORM_TMPL)) {
        if ($lPHORM_TMPL == ph_GENERIC) $lPHORM_TMPL = "$ph_root/files/generic.txt";
        else                            $lPHORM_TMPL = "$ph_tpd/$lPHORM_TMPL";
  
        $ph_Message   = "";
        $ph_Headers   = "";
        $ph_NonHeader = "";
  
        $lPHORM_TO      = "";
        $lPHORM_FROM    = "";
        $lPHORM_SUBJECT = "";
        $lPHORM_HEADERS = "";
  
        $ph_TemplateHeaders = false;
        if (ereg("(.+) +\+h$", $lPHORM_TMPL, $ph_regs)) {
          $lPHORM_TMPL = trim($ph_regs[1]);
          $ph_TemplateHeaders = true;
        }
  
        if ($ph_debug8) echo "Mail Template &lt;B&gt;$lPHORM_TMPL&lt;/B&gt;&lt;BR&gt;";
  
        if (!$ph_Template = @implode("", file($lPHORM_TMPL))) {
          $ph_Alerts['005'] = ph_Message("A005");
          if ($php_errormsg) $ph_Alerts['005P'] = "%%%: $php_errormsg";
          continue;
        }
  </code></pre>