<div dir="ltr"><div>Will replacing the following in else clause work?</div><div><br></div><div><font face="courier new, monospace">$smtp_auth = $adb->query_result($res,0,'smtp_auth');</font></div><div><font face="courier new, monospace">if(!empty($smtp_auth))){</font></div><div><font face="courier new, monospace"><span class="" style="white-space:pre"> </span>$smtp_auth = true;</font></div><div><font face="courier new, monospace">}</font></div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><b>Connect with us on: </b><a href="http://twitter.com/vtigercrm" style="color:rgb(0,0,204)" target="_blank">Twitter</a> <b>I</b> <a href="http://www.facebook.com/pages/vtiger/226866697333578?sk=wall" style="color:rgb(0,0,204)" target="_blank">Facebook</a> <b>I</b> <a href="https://blogs.vtiger.com/" style="color:rgb(0,0,204)" target="_blank">Blog</a><b> I</b> <a href="http://wiki.vtiger.com/vtiger6/index.php/Main_Page" style="color:rgb(0,0,204)" target="_blank">Wiki</a> <b>I</b> <a href="https://www.vtiger.com/" style="color:rgb(0,0,204)" target="_blank">Website</a></span></div></div>
<br><div class="gmail_quote">On Mon, Oct 20, 2014 at 10:56 PM, Alan Lord (News) <span dir="ltr"><<a href="mailto:alanslists@gmail.com" target="_blank">alanslists@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
<br>
On 20/10/14 18:02, Prasad wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Does this help -<br>
<a href="http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/8297#comment:5" target="_blank">http://trac.vtiger.com/cgi-<u></u>bin/trac.cgi/ticket/8297#<u></u>comment:5</a><br>
</blockquote>
<br></span>
I don't think that will work...<br>
<br>
This line<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
 $smtp_auth = $adb->query_result($res,0,'__<u></u>smtp_auth');<br>
</blockquote>
<br>
Sets $smtp_auth to a string.<br>
<br>
The test further down<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  if($smtp_auth){<br>
</blockquote>
<br>
Will always be true unless you reset $smtp_auth back to a bool...<span class="HOEnZb"><font color="#888888"><br>
<br>
Al<br>
<br>
<br>
-- <br>
Libertus Solutions<br>
<a href="http://www.libertus.co.uk" target="_blank">http://www.libertus.co.uk</a><br>
<br>
______________________________<u></u>_________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br>
</font></span></blockquote></div><br></div>