Răsfoiți Sursa

Add isset to the themes.

Mark Crane 12 ani în urmă
părinte
comite
600b6b39de

+ 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
 									}