* use isset() to be correct and don't produce warnings
[citadel.git] / ctdlphp / ctdlelements.php
index 31ab4d28d46bf1fd782b0febf9215cd3be60d418..8834601c4e7657a03c4cd235cefd8d127072e8d2 100644 (file)
@@ -30,7 +30,7 @@ function display_message($msgnum) {
        echo strftime("%b %d %Y %I:%M%p ", $fields["time"]) ;
        echo " from " . htmlspecialchars($fields["from"]) ;
        
-       if (strlen($fields["rfca"]) > 0) {
+       if (isset($fields["rfca"]) && strlen($fields["rfca"]) > 0) {
                echo " <" . htmlspecialchars($fields["rfca"]) . ">" ;
        }
        else if ( (strlen($fields["node"]) > 0) 
@@ -41,7 +41,7 @@ function display_message($msgnum) {
                }
        }
 
-       if (strlen($fields["rcpt"]) > 0) {
+       if (isset($fields["rcpt"]) && strlen($fields["rcpt"]) > 0) {
                echo " to " . htmlspecialchars($fields["rcpt"]) ;
        }
        echo "</I></B><BR>\n" ;