Browse files

More robust check on $_GET

  • Loading branch information...
1 parent e51baf8 commit ba2755cfc9bb361c708e3cc40a9d51dfa600d3d1 Paul Robert Lloyd committed May 8, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 _patterns.php
  2. +1 −1 _styleguide.php
View
2 _patterns.php
@@ -1,4 +1,4 @@
-<!DOCTYPE html><html lang="en-gb"<?php if($_GET['debug']==true) echo ' class="debug"';?>>
+<!DOCTYPE html><html lang="en-gb"<?php if(isset($_GET['debug'])) echo ' class="debug"';?>>
<head>
<title>Pattern Primer</title>
View
2 _styleguide.php
@@ -1,4 +1,4 @@
-<!DOCTYPE html><html lang="en-gb"<?php if($_GET['debug']==true) echo ' class="debug"';?>>
+<!DOCTYPE html><html lang="en-gb"<?php if(isset($_GET['debug'])) echo ' class="debug"';?>>
<head>
<title>Style Guide</title>

0 comments on commit ba2755c

Please sign in to comment.