From 86aac4847705f0a4559400da6c0e9f1aeba5cdf8 Mon Sep 17 00:00:00 2001 From: Patrick Davison Date: Fri, 10 May 2013 02:17:14 -0700 Subject: Many bugs and PHP notices & warning fixes. --- includes/header.php | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'includes/header.php') diff --git a/includes/header.php b/includes/header.php index da5e11d..35fd323 100644 --- a/includes/header.php +++ b/includes/header.php @@ -1,6 +1,7 @@ @@ -9,7 +10,14 @@ function htmlHeader($css = array(), $title = 'Pathery', $desc = '', $scripts = a <? echo $title; ?> - +'; + } else { + echo ""; + } + // +?> "; - foreach ($scripts as $s) echo ""; + foreach ($scripts as $s) echo ""; ?> @@ -136,12 +144,14 @@ function htmlFooter() { s.parentNode.appendChild(ga, s); })(); @@ -215,7 +225,7 @@ function userDataToJS() { $userID = $_SESSION['userID']; include_once('includes/datas.php'); $hasInsaneSpeed = hasExtrasUnlock($userID, UNLOCK_EXTRAS, MISC_UNLOCK_INSANE_SPEED); - $r .= 'hasInsaneSpeed":'.$hasInsaneSpeed.'};'."\n"; + $r = 'hasInsaneSpeed":'.$hasInsaneSpeed.'};'."\n"; $json = array('ID' => 'fat'); $json['ID'] = $userID; $json['wallColor'] = $wallColor; -- cgit v1.2.3