[Mvblog-commits] r727 - trunk/common

mvblog-commits at lists.three-dimensional.net mvblog-commits at lists.three-dimensional.net
Sun Dec 9 18:24:18 CET 2007


Author: michiel
Date: 2007-12-09 18:24:18 +0100 (Sun, 09 Dec 2007)
New Revision: 727

Modified:
   trunk/common/mvblog.php
Log:
fix two warnings in dev-mode


Modified: trunk/common/mvblog.php
===================================================================
--- trunk/common/mvblog.php	2007-12-09 17:00:10 UTC (rev 726)
+++ trunk/common/mvblog.php	2007-12-09 17:24:18 UTC (rev 727)
@@ -763,7 +763,7 @@
 			</form>
 			<?php
 		} else {
-			if ($_SESSION["author_name"]) {
+			if (array_key_exists("author_name", $_SESSION) && $_SESSION["author_name"]) {
 				$realname = htmlspecialchars(stripslashes($_SESSION["author_fullname"]));
 			} else {
 				$realname = htmlspecialchars(stripslashes($_SESSION["blog_user"]["realname"]));
@@ -1235,7 +1235,7 @@
 			$email, $website, $regcode
 		);
 		$this->db->exec($sql);
-		if ($_SERVER["HTTPS"] == "on")
+		if (array_key_exists("HTTPS", $_SERVER) && $_SERVER["HTTPS"] == "on")
 			$proto = "https";
 		else
 			$proto = "http";



More information about the Mvblog-commits mailing list