Changeset 178 for trunk/global.php


Ignore:
Timestamp:
Mar 24, 2009, 9:00:06 PM (16 years ago)
Author:
george
Message:
  • Opraveno: Zobrazování stavu účetních operací pro subjekty namísto uživatelů.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/global.php

    r170 r178  
    190190  global $Database;
    191191 
    192   $DbResult = $Database->query('SELECT Id FROM User WHERE (SELECT user FROM hosts WHERE IP="'.$IP.'") = User.Id');
    193   $DbRow = $DbResult->fetch_assoc();
    194   return($DbRow['Id']);
     192  $DbResult = $Database->query('SELECT Id FROM Member WHERE (SELECT user FROM hosts WHERE IP="'.$IP.'") = Member.Id');
     193  if($DbResult->num_rows > 0)
     194  {
     195    $DbRow = $DbResult->fetch_assoc(); 
     196    return($DbRow['Id']);
     197  } else return('');
    195198}
    196199
Note: See TracChangeset for help on using the changeset viewer.