summaryrefslogtreecommitdiffstats
path: root/includes
diff options
context:
space:
mode:
authorPatrick Davison <snapwilliam@gmail.com>2011-11-07 02:05:16 -0800
committerPatrick Davison <snapwilliam@gmail.com>2011-11-07 02:05:16 -0800
commit016f8cccd578b8f794021035ff8f516a44bcbda4 (patch)
tree3ea23e5b44718e68a15b3eeb4254b0fe939af4ac /includes
parentc128a5d15dba6f2715906e8a1a6714b942a6f886 (diff)
downloadpathery-016f8cccd578b8f794021035ff8f516a44bcbda4.tar.xz
Tutorial work
Diffstat (limited to 'includes')
-rw-r--r--includes/header.php2
-rw-r--r--includes/maps.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/includes/header.php b/includes/header.php
index a9d3538..3943238 100644
--- a/includes/header.php
+++ b/includes/header.php
@@ -1,6 +1,6 @@
<?php
-function htmlHeader($css) {
+function htmlHeader($css = array()) {
?>
<!DOCTYPE html>
<html xml:lang="en" lang="en">
diff --git a/includes/maps.php b/includes/maps.php
index 901a946..ef1d6e0 100644
--- a/includes/maps.php
+++ b/includes/maps.php
@@ -389,7 +389,7 @@ function GenerateShapedMap($shape, $params) {
else
$teleports = 0;
- if ($params['walls'])
+ if (is_int($params['walls']))
$walls = $params['walls'];
else
$walls = 13;