X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=admin%2Fmarctagstructure.pl;h=0326b93b2c5b8bf81d738f7eb525dc824a2e2b6d;hb=6b72f249082fc6be8811c3dacec15648f7c5ccd9;hp=fd8d7c251d0e5c040a324d2e5e7e0ef04e7d9c13;hpb=3e131101911fda60580b1dd757d078c172f19c3b;p=koha_fer diff --git a/admin/marctagstructure.pl b/admin/marctagstructure.pl index fd8d7c251d..0326b93b2c 100755 --- a/admin/marctagstructure.pl +++ b/admin/marctagstructure.pl @@ -149,7 +149,7 @@ if ($op eq 'add_form') { my $repeatable = $input->param('repeatable') ? 1 : 0; my $mandatory = $input->param('mandatory') ? 1 : 0; my $authorised_value = $input->param('authorised_value'); - unless (C4::Context->config('demo') == 1) { + unless (C4::Context->config('demo')) { if ($input->param('modif')) { $sth = $dbh->prepare( "UPDATE marc_tag_structure SET liblibrarian=? ,libopac=? ,repeatable=? ,mandatory=? ,authorised_value=? WHERE frameworkcode=? AND tagfield=?" @@ -194,7 +194,7 @@ if ($op eq 'add_form') { ################## DELETE_CONFIRMED ################################## # called by delete_confirm, used to effectively confirm deletion of data in DB } elsif ($op eq 'delete_confirmed') { - unless (C4::Context->config('demo') == 1) { + unless (C4::Context->config('demo')) { my $sth1 = $dbh->prepare("DELETE FROM marc_tag_structure WHERE tagfield=? AND frameworkcode=?"); my $sth2 = $dbh->prepare("DELETE FROM marc_subfield_structure WHERE tagfield=? AND frameworkcode=?"); $sth1->execute($searchfield, $frameworkcode);