summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohnAlbin2011-08-05 17:15:27 (GMT)
committer JohnAlbin2011-08-05 17:15:27 (GMT)
commit63231c4489e0cf884aca432cef5accc5bb4dd0fc (patch)
treec0c2984989efdd4af94ea72ba6e5329c69dee82f
parenta2831350bb8a75f5c3513846fc9e5fcf7ddf0e20 (diff)
by JohnAlbin: Fix PHP warning caused by previous commit.
-rw-r--r--template.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/template.php b/template.php
index 7ad141d..6a0e4c6 100644
--- a/template.php
+++ b/template.php
@@ -192,7 +192,7 @@ function zen_preprocess_html(&$variables, $hook) {
if ($arg[1] == 'add') {
$section = 'node-add';
}
- elseif (is_numeric($arg[1]) && ($arg[2] == 'edit' || $arg[2] == 'delete')) {
+ elseif (isset($arg[2]) && is_numeric($arg[1]) && ($arg[2] == 'edit' || $arg[2] == 'delete')) {
$section = 'node-' . $arg[2];
}
}