X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=wwwroot%2Finc%2Fsmarty%2Fnode_methodz%2Ffunction.get_movement_params.php;h=7cc3fc2dfa0689d6bf5aa0f11b7436b9a9f1b6ec;hb=c0aaf671335c0eff681bc78b3f4da279a26d0d3e;hp=c0918aa821d7c34e1678b0062e9a9af136d1abe2;hpb=51ff32267c4949bad6a8dddc502cbc01ed56edc8;p=mirrors%2FKyberia-bloodline.git diff --git a/wwwroot/inc/smarty/node_methodz/function.get_movement_params.php b/wwwroot/inc/smarty/node_methodz/function.get_movement_params.php index c0918aa..7cc3fc2 100644 --- a/wwwroot/inc/smarty/node_methodz/function.get_movement_params.php +++ b/wwwroot/inc/smarty/node_methodz/function.get_movement_params.php @@ -3,13 +3,17 @@ function smarty_function_get_movement_params($params,&$smarty) { $children_count=$params['children_count']; - if (is_numeric($_POST['listing_amount'])) $listing_amount=$_POST['listing_amount']; - elseif (!empty($_SESSION['listing_amount'])) $listing_amount=$_SESSION['listing_amount']; - else $listing_amount=DEFAULT_LISTING_AMOUNT; + if (isset($_POST['listing_amount']) && + (is_numeric($_POST['listing_amount']))) { + $listing_amount=$_POST['listing_amount']; + } elseif (!empty($_SESSION['listing_amount'])) { + $listing_amount=$_SESSION['listing_amount']; + } else $listing_amount=DEFAULT_LISTING_AMOUNT; $smarty->assign('listing_amount',$listing_amount); - if (is_numeric($_POST['get_children_offset'])) { + if (isset($_POST['get_children_offset']) && + (is_numeric($_POST['get_children_offset']))) { $offset=$_POST['get_children_offset']; //movement forward and backward @@ -38,4 +42,4 @@ $smarty->assign('offset',$offset); } -?> \ No newline at end of file +?>