- if ($_POST['get_children_move']=='<') {
- $offset=$offset-$listing_amount;
- if ($offset<0) $offset=0;
- }
- elseif ($_POST['get_children_move']=='>') {
- $offset=$offset+$listing_amount;
- }
- elseif ($_POST['get_children_move']=='>>') {
- $offset=$descendant_count-$listing_amount;
- }
-
- elseif ($_POST['get_children_move']=='<<') {
- $offset=0;
- }
- if ($offset<0) $offset=0;
- $_POST['offset']=$offset;
- $smarty->assign('offset',$offset);
+ if (isset($_POST['get_children_move'])) {
+ if ($_POST['get_children_move']=='<') {
+ $offset=$offset-$listing_amount;
+ if ($offset<0) $offset=0;
+ }
+ elseif ($_POST['get_children_move']=='>') {
+ $offset=$offset+$listing_amount;
+ }
+ elseif ($_POST['get_children_move']=='>>') {
+ $offset=$descendant_count-$listing_amount;
+ }