/[drupal]/contributions/modules/timemap/timemap.module
ViewVC logotype

Diff of /contributions/modules/timemap/timemap.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1, Mon Jun 2 03:43:49 2008 UTC revision 1.1.2.1, Wed Jun 4 13:59:06 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id$  // $Id: timemap.module,v 1.1 2008/06/02 03:43:49 sethfreach Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 389  function timemap_enter_task_form_submit( Line 389  function timemap_enter_task_form_submit(
389      // if so, enter a negative value for the category.  the text is informational only.      // if so, enter a negative value for the category.  the text is informational only.
390    if ($form_values['op'] == $form_values['done']) {    if ($form_values['op'] == $form_values['done']) {
391          // end the last 'task' entered          // end the last 'task' entered
392      db_query_range("update {timemap_doings} set stop=%d where uid=%d order by time desc limit 1", time(), $user->uid);      db_query("update {timemap_doings} set stop=%d where uid=%d order by time desc limit 1", time(), $user->uid);
393    
394          // record the 'punch clock' stamp          // record the 'punch clock' stamp
395      db_query("insert into {timemap_doings} (uid, cid, task, time) values (%d, %d, '%s', %d)",      db_query("insert into {timemap_doings} (uid, cid, task, time) values (%d, %d, '%s', %d)",

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.1.2.1

  ViewVC Help
Powered by ViewVC 1.1.2