Ignore:
Timestamp:
Jul 29, 2013, 9:25:33 PM (11 years ago)
Author:
chronos
Message:
  • Fixed: Error in user profile page if user id is not given.
  • Fixed: Error in translation list view if translation group item filter is empty.
  • Fixed: SQL constraint error in case of export deletion which have records in related tables.
  • Fixed: Error when table ordering parameter contain invalid value.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/global.php

    r552 r554  
    232232 
    233233  if(array_key_exists('OrderCol', $_GET)) $_SESSION['OrderCol'] = $_GET['OrderCol'];
    234   if(array_key_exists('OrderDir', $_GET)) $_SESSION['OrderDir'] = $_GET['OrderDir'];
     234  if(array_key_exists('OrderDir', $_GET) and (array_key_exists($_GET['OrderDir'], $OrderArrowImage)))
     235        $_SESSION['OrderDir'] = $_GET['OrderDir'];
    235236  if(!array_key_exists('OrderCol', $_SESSION)) $_SESSION['OrderCol'] = $DefaultColumn;
    236   if(!array_key_exists('OrderDir', $_SESSION)) $_SESSION['OrderDir'] = $DefaultOrder;
     237  if(!array_key_exists('OrderDir', $_SESSION)) $_SESSION['OrderDir'] = $DefaultOrder; 
    237238 
    238239  // Check OrderCol
     
    260261    $QueryItems['OrderCol'] = $Column['Name'];
    261262    $QueryItems['OrderDir'] = 1 - $_SESSION['OrderDir'];
    262     if($Column['Name'] == $_SESSION['OrderCol']) $ArrowImage = '<img  style="vertical-align: middle; border: 0px;" src="'.$System->Link('/images/'.$OrderArrowImage[$_SESSION['OrderDir']]).'" alt="order arrow">';
     263    if($Column['Name'] == $_SESSION['OrderCol']) $ArrowImage = '<img  style="vertical-align: middle; border: 0px;" src="'.
     264      $System->Link('/images/'.$OrderArrowImage[$_SESSION['OrderDir']]).'" alt="order arrow">';
    263265      else $ArrowImage = '';
    264266    if($Column['Name'] == '') $Result .= '<th>'.$Column['Title'].'</th>';
Note: See TracChangeset for help on using the changeset viewer.