Changeset 457 for trunk/dictionary.php


Ignore:
Timestamp:
Apr 13, 2010, 10:35:16 AM (15 years ago)
Author:
george
Message:
  • Opraveno: Zbylé použití procedurálních funkcí mysql_ přepsáno na objektové.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dictionary.php

    r455 r457  
    117117     
    118118        $DbResult = $System->Database->query('SELECT `Id` FROM `Dictionary` WHERE `Entry` = '.$Entry.' AND `Language`='.$_SESSION['language'].' AND `User`='.$User->Id);
    119         if(mysql_num_rows($DbResult) > 0)
    120         {
    121           $DbRow = mysql_fetch_assoc($DbResult);
     119        if($DbResult->num_rows > 0)
     120        {
     121          $DbRow = $DbResult->fetch_assoc();
    122122          $System->Database->query('UPDATE `Dictionary` SET `Text`="'.$_POST['Translated'].'", `Description` = "'.$_POST['Description'].'" WHERE Id='.$DbRow['Id']);
    123123        } else     
Note: See TracChangeset for help on using the changeset viewer.