Skip to content

Commit

Permalink
Fix #290 - Change exists test to isset()
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnSmith-LT committed May 27, 2015
1 parent 78992d0 commit 93181d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions website_code/php/management/syndication_remove.php
Expand Up @@ -26,17 +26,17 @@

$query = false;

if($_POST['rss']!=""){
if(isset($_POST['rss'])){
$query="update {$xerte_toolkits_site->database_table_prefix}templatesyndication set rss='false' where template_id=?";
$params = array($_POST['template_id']);
}

if($_POST['export']!=""){
if(isset($_POST['export'])){
$query="update {$xerte_toolkits_site->database_table_prefix}templatesyndication set export='false' where template_id =?";
$params = array($_POST['template_id']);
}

if($_POST['synd']!=""){
if(isset($_POST['synd'])){
$query="update {$xerte_toolkits_site->database_table_prefix}templatesyndication set syndication='false' where template_id =?";
$params = array($_POST['template_id']);
}
Expand Down

0 comments on commit 93181d0

Please sign in to comment.