Changeset 554 for trunk/Modules/User


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/Modules/User/Profile.php

    r547 r554  
    4141                                'LEFT JOIN `Team` ON `Team`.`Id` = `User`.`Team` '.
    4242                                'LEFT JOIN `ClientVersion` ON `ClientVersion`.`Id` = `User`.`PreferredVersion` '.
    43                                 'WHERE `User`.`Id` = '.$_GET['user'];
     43                                'WHERE `User`.`Id` = '.($_GET['user'] * 1);
    4444                $DbResult = $this->Database->query($Query);
     45                if($DbResult->num_rows > 0)
     46                {
    4547                $UserLine = $DbResult->fetch_array();
    4648                 
     
    7678                                        '</div></form></fieldset>';
    7779                }
     80                } else $Output .= ShowMessage('Uživatel nenalezen', MESSAGE_CRITICAL);
    7881                return($Output);
    7982        }
Note: See TracChangeset for help on using the changeset viewer.