Skip to content

Commit

Permalink
Fix notice on first call
Browse files Browse the repository at this point in the history
  • Loading branch information
sebbu2 committed May 29, 2013
1 parent 8455f4d commit 22aaecb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions session.php
@@ -1,7 +1,7 @@
<?php
session_start();
if(!is_array($_SESSION['layers_nodraw'])) $_SESSION['layers_nodraw']=array();
if(!is_array($_SESSION['tilesets_nodraw'])) $_SESSION['tilesets_nodraw']=array();
if(!array_key_exists('layers_nodraw',$_SESSION) || !is_array($_SESSION['layers_nodraw'])) $_SESSION['layers_nodraw']=array();
if(!array_key_exists('tilesets_nodraw',$_SESSION) || !is_array($_SESSION['tilesets_nodraw'])) $_SESSION['tilesets_nodraw']=array();
if(array_key_exists('act', $_REQUEST)) {
@assert(array_key_exists('l', $_REQUEST) || array_key_exists('t', $_REQUEST)) or die('Hacking attempt.');
switch($_REQUEST['act']) {
Expand Down

0 comments on commit 22aaecb

Please sign in to comment.