diff --git a/template.php b/template.php
index 380a7eb..e3528f7 100644
--- a/template.php
+++ b/template.php
@@ -133,7 +133,7 @@ function zen_preprocess_html(&$variables, $hook) {
     list($section, ) = explode('/', $path, 2);
     $arg = explode('/', $_GET['q']);
     if ($arg[0] == 'node') {
-      if ($arg[1] == 'add') {
+      if (isset($arg[1]) && $arg[1] == 'add') {
         $section = 'node-add';
       }
       elseif (isset($arg[2]) && is_numeric($arg[1]) && ($arg[2] == 'edit' || $arg[2] == 'delete')) {
