Changeset 120 for trunk/dns.cgi


Ignore:
Timestamp:
09/08/11 16:07:32 (13 years ago)
Author:
Kris Deugau
Message:

/trunk

Fix some uninitialized variable bugs - $sortby and $sortorder were

actually getting *un*set where they shouldn't have been.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dns.cgi

    r117 r120  
    309309  $session->param($webvar{page}.'order', $webvar{order}) if $webvar{order};
    310310
    311   $sortby = $session->param($webvar{page}.'sortby');
    312   $sortorder = $session->param($webvar{page}.'order');
     311  $sortby = $session->param($webvar{page}.'sortby') if $session->param($webvar{page}.'sortby');
     312  $sortorder = $session->param($webvar{page}.'order') if $session->param($webvar{page}.'order');
    313313
    314314# set up the headers
     
    15611561  $session->param($webvar{page}.'order', $webvar{order}) if $webvar{order};
    15621562
    1563   $sortby = $session->param($webvar{page}.'sortby');
    1564   $sortorder = $session->param($webvar{page}.'order');
     1563  $sortby = $session->param($webvar{page}.'sortby') if $session->param($webvar{page}.'sortby');
     1564  $sortorder = $session->param($webvar{page}.'order') if $session->param($webvar{page}.'order');
    15651565
    15661566# set up the headers
     
    16431643  $session->param($webvar{page}.'order', $webvar{order}) if $webvar{order};
    16441644
    1645   $sortby = $session->param($webvar{page}.'sortby');
    1646   $sortorder = $session->param($webvar{page}.'order');
     1645  $sortby = $session->param($webvar{page}.'sortby') if $session->param($webvar{page}.'sortby');
     1646  $sortorder = $session->param($webvar{page}.'order') if $session->param($webvar{page}.'order');
    16471647
    16481648# set up the headers
     
    17481748  $session->param($webvar{page}.'order', $webvar{order}) if $webvar{order};
    17491749
    1750   $sortby = $session->param($webvar{page}.'sortby');
    1751   $sortorder = $session->param($webvar{page}.'order');
     1750  $sortby = $session->param($webvar{page}.'sortby') if $session->param($webvar{page}.'sortby');
     1751  $sortorder = $session->param($webvar{page}.'order') if $session->param($webvar{page}.'order');
    17521752
    17531753# set up the headers
Note: See TracChangeset for help on using the changeset viewer.