title: php implode if only 1 result
body: <p>I am using the following to retireve email addresses to auto email after user registration. If there is only 1 result, will the LoadResultArray list correctly in php implode? Or do I have to write an exception if only 1 result? </p>
  
  <pre><code>$query = "SELECT u.email FROM " . $table_prefix . "users as u, " . $table_prefix . "bl_teamcord as tc WHERE FIND_IN_SET('$team_id',tc.teams) AND  tc.u_id = u.id AND tc.reg_emails = 1";        
               $db-&gt;setQuery($query);
      $remail2 = $db-&gt;loadResultArray();
  
  
     if ($remail2){
  $remail3 = implode(",",$remail2);
  }else{
  $remail3 = "";}
  </code></pre>
  
  <p>additionally, could there be a problem with the email function?</p>
  
  <pre><code>    $to = $remail3;
  </code></pre>