瀏覽代碼

Add isset to the themes.

Mark Crane 12 年之前
父節點
當前提交
600b6b39de
共有 4 個文件被更改,包括 4 次插入4 次删除
  1. 1 1
      themes/accessible/template.php
  2. 1 1
      themes/classic/template.php
  3. 1 1
      themes/default/template.php
  4. 1 1
      themes/enhanced/template.php

+ 1 - 1
themes/accessible/template.php

@@ -471,7 +471,7 @@ function confirmdelete(url) {
 </td>
 <td align='left' valign='top'>
 <?php
-if ($_SESSION["reload_xml"]) {
+if (isset($_SESSION["reload_xml"])) {
 		if ($_SERVER["PHP_SELF"] != PROJECT_PATH."/app/sip_status/v_status.php") {
 			if(stristr($_SERVER["PHP_SELF"] , "_edit") != FALSE) { 
 				//found

+ 1 - 1
themes/classic/template.php

@@ -564,7 +564,7 @@ function confirmdelete(url) {
 <table width='100%' cellpadding='25' cellspacing='0' border='0'>
 <td width='100%' align='left' valign='top'>
 <?php
-if ($_SESSION["reload_xml"]) {
+if (isset($_SESSION["reload_xml"])) {
 		if ($_SERVER["PHP_SELF"] != PROJECT_PATH."/app/sip_status/sip_status.php") {
 			if(stristr($_SERVER["PHP_SELF"], "_edit") != FALSE) { 
 				//found

+ 1 - 1
themes/default/template.php

@@ -738,7 +738,7 @@ function confirmdelete(url) {
 </td>
 <td class='main_content' align='left' valign='top' width='85%'>
 <?php
-if ($_SESSION["reload_xml"]) {
+if (isset($_SESSION["reload_xml"])) {
 	if ($_SERVER["PHP_SELF"] != PROJECT_PATH."/app/sip_status/sip_status.php") {
 		if(stristr($_SERVER["PHP_SELF"], "_edit") != FALSE) { 
 			//found

+ 1 - 1
themes/enhanced/template.php

@@ -699,7 +699,7 @@ function confirmdelete(url) {
 						<td class='main_content' align='left' valign='top' width='85%'>
 							<?php
 							/*
-							if ($_SESSION["reload_xml"]) {
+							if (isset($_SESSION["reload_xml"])) {
 									if ($_SESSION['apply_settings'] == "true") {
 										//show the apply settings prompt
 									}