summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorarrrgh2012-02-12 21:30:51 (GMT)
committer Pedro Lozano2012-02-12 21:30:51 (GMT)
commitb2fc2acc178f11d7e04ab1d193c30da3a44d73ea (patch)
treea433dd5d377cd8967cef14f52779e8f0358dd34c
parent75430952d4243548e918f2fb2147fc830ab5c72d (diff)
Issue #1016038 by arrrgh: Avoid "Undefined Index" error.HEADmaster
-rw-r--r--template.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/template.php b/template.php
index 20785c8..a0ae65f 100644
--- a/template.php
+++ b/template.php
@@ -509,7 +509,9 @@ function _nitobe_build_footer_columns(&$variables) {
* - nitobe_tabs_secondary: The array of secondary tabs for this page.
*/
function nitobe_preprocess_page(&$variables) {
- $variables["nitobe_tabs_primary"] = $variables["tabs"]['#primary'];
+ if(isset($variables["tabs"]['#primary'])){
+ $variables["nitobe_tabs_primary"] = $variables["tabs"]['#primary'];
+ }
$variables["nitobe_tabs_secondary"] = $variables["tabs"]['#secondary'];
// -- Determine which layout to use.
@@ -545,7 +547,7 @@ function nitobe_process_page(&$variables) {
$classes_array = array("page-title");
$title = $variables["title"];
- if ($variables["tabs"]["#primary"]) {
+ if (isset($variables["tabs"]["#primary"])) {
$classes_array[] = "with-tabs";
}