# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
-# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+# MA 02110-1335, USA.
#======================================================================
#
# Administration module
SL::DB->client->with_transaction(sub {
$query = qq|DELETE FROM leads WHERE id = ?|;
do_query($form, SL::DB->client->dbh, $query, $form->{id});
- });
+ 1;
+ }) or do { die SL::DB->client->error };
$main::lxdebug->leave_sub();
}
") VALUES (?, ?, ?, ?, ?, ?)";
}
do_query($form, $dbh, $query, @values);
- });
+ 1;
+ }) or do { die SL::DB->client->error };
$main::lxdebug->leave_sub();
}
$query = "DELETE FROM language WHERE id = ?";
do_query($form, $dbh, $query, $form->{"id"});
- });
+ 1;
+ }) or do { die SL::DB->client->error };
$main::lxdebug->leave_sub();
}
# set close in defaults
do_query($form, $dbh, $query, @values);
- });
+ 1;
+ }) or do { die SL::DB->client->error };
$main::lxdebug->leave_sub();
}
}
$sth->finish();
}
- });
+ 1;
+ }) or do { die SL::DB->client->error };
$main::lxdebug->leave_sub();
}
SL::DB->client->with_transaction(sub {
$query = qq|DELETE FROM tax WHERE id = ?|;
do_query($form, SL::DB->client->dbh, $query, $form->{id});
- });
+ 1;
+ }) or do { die SL::DB->client->error };
$main::lxdebug->leave_sub();
}
}
do_query($form, $dbh, $query, @values);
- });
+ 1;
+ }) or do { die SL::DB->client->error };
$main::lxdebug->leave_sub();
}
SL::DB->client->with_transaction(sub {
do_query($form, SL::DB->client->dbh, qq|DELETE FROM price_factors WHERE id = ?|, conv_i($form->{id}));
- });
+ 1;
+ }) or do { die SL::DB->client->error };
$main::lxdebug->leave_sub();
}
$sth->finish();
}
- });
+ 1;
+ }) or do { die SL::DB->client->error };
$main::lxdebug->leave_sub();
}
}
$sth->finish();
- });
+ 1;
+ }) or do { die SL::DB->client->error };
$main::lxdebug->leave_sub();
}