Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Commit

Permalink
Stomp notices
Browse files Browse the repository at this point in the history
  • Loading branch information
ecartz committed Oct 15, 2020
1 parent 0d4a117 commit fbd1c70
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions admin/specials.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
$specials_price = tep_db_prepare_input($_POST['specials_price']);
$expdate = tep_db_prepare_input($_POST['expdate']);

if (substr($specials_price, -1) == '%') {
if (substr($specials_price, -1) === '%') {
$specials_price = substr($specials_price, 0, -1);
$new_special_insert_query = tep_db_query("select products_id, products_price from products where products_id = '" . (int)$products_id . "'");
$new_special_insert = tep_db_fetch_array($new_special_insert_query);

Expand All @@ -51,7 +52,8 @@

$OSCOM_Hooks->call('specials', 'insertAction');

tep_redirect(tep_href_link('specials.php', 'page=' . (int)$_GET['page']));
tep_redirect(tep_href_link('specials.php', isset($_GET['page']) ? 'page=' . (int)$_GET['page'] : ''));

break;
case 'update':
$specials_id = tep_db_prepare_input($_POST['specials_id']);
Expand Down

0 comments on commit fbd1c70

Please sign in to comment.