Skip to content

Commit

Permalink
fix an error
Browse files Browse the repository at this point in the history
  • Loading branch information
MitanOmar authored Jan 28, 2020
1 parent bd1977e commit fe44d42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions init.php
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@

if (ip('buy_file'))
{
if (empty(p('method')) || empty(p('action')) || empty(p('file')))
if (empty(p('method')) || empty(g('file')))
{
kleeja_err($lang['ERROR_NAVIGATATION']);
}
Expand Down Expand Up @@ -702,7 +702,7 @@
// blablabla = it's optional for you to using sessions or anythink you want , anyway it will be global varibles


if (ig('go') && g('go') === 'kj_payment' && ig('method') && ig('action'))
if (ig('go') && g('go') === 'kj_payment' && ig('method') && !empty(g('method')) && ig('action') && ! empty(g('action')))
{
require_once dirname(__FILE__) . '/php/kjPayment.php'; // require the payment interface
$PaymentMethodClass = dirname(__FILE__) . '/method/' . g('method') . '.php'; // default payment method
Expand Down

0 comments on commit fe44d42

Please sign in to comment.