Changeset 41 for trunk/www/task.php


Ignore:
Timestamp:
Jun 16, 2009, 6:47:25 PM (15 years ago)
Author:
george
Message:
  • Opraveno: Zobrazovat pouze zálohy daného uživatele.
  • Opraveno: Chyba nastavování času ukončení úloh.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/task.php

    r38 r41  
    2525    $DbResult = $this->Database->query('SELECT * FROM Task WHERE State = 0 ORDER BY Id,TimeCreate ASC');
    2626    $this->Database->query('UPDATE Task SET State=2 WHERE State=1'); // Change not finished running tasks to finished
    27     $this->Database->query('UPDATE Task SET TimeEnd=NOW() WHERE State=2'); // Set end time to finished tasks
     27    $this->Database->query('UPDATE Task SET TimeEnd=NOW() WHERE State=2 AND TimeEnd = NULL'); // Set end time to finished tasks
    2828    while($Task = $DbResult->fetch_assoc())
    2929    {
Note: See TracChangeset for help on using the changeset viewer.