Changeset 410 for trunk/user.php


Ignore:
Timestamp:
Oct 4, 2012, 10:12:08 AM (12 years ago)
Author:
chronos
Message:
  • Upraveno: Vazba tabulky User na Member oddělena do samostatné tabulky jako vztah N:N.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/user.php

    r406 r410  
    5252    if($Row['User'] != $this->AnonymousUserId)
    5353    {
    54       $Query = $this->Database->select('User', '*', 'Id='.$Row['User']);
     54      $Query = $this->Database->query('SELECT *, UserCustomerRel.Customer AS Member FROM User JOIN UserCustomerRel ON UserCustomerRel.User=User.Id WHERE User.Id='.$Row['User']);     
    5555      $this->User = $Query->fetch_assoc();
    5656      $Result = USER_LOGGED;
Note: See TracChangeset for help on using the changeset viewer.