Changeset 727

Show
Ignore:
Timestamp:
12/09/07 18:24:18 (13 months ago)
Author:
michiel
Message:

fix two warnings in dev-mode

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/common/mvblog.php

    r682 r727  
    764764                        <?php 
    765765                } else { 
    766                         if ($_SESSION["author_name"]) { 
     766                        if (array_key_exists("author_name", $_SESSION) && $_SESSION["author_name"]) { 
    767767                                $realname = htmlspecialchars(stripslashes($_SESSION["author_fullname"])); 
    768768                        } else { 
     
    12361236                ); 
    12371237                $this->db->exec($sql); 
    1238                 if ($_SERVER["HTTPS"] == "on") 
     1238                if (array_key_exists("HTTPS", $_SERVER) && $_SERVER["HTTPS"] == "on") 
    12391239                        $proto = "https"; 
    12401240                else