Changeset 1842 in ExiteCMS


Ignore:
Timestamp:
10/09/08 15:11:33 (3 years ago)
Author:
hverton
Message:

fixed not updating the last polltime

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/common/mail2forum/php-files/modules/mail2forum/m2f_smtp.php

    r1838 r1842  
    277277    $lastpoll = time(); 
    278278    if (!isset($settings['m2f_last_polled'])) { 
    279         $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES ('m2f_lasted_polled', '".$lastpoll."')"); 
     279        $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES ('m2f_last_polled', '".$lastpoll."')"); 
    280280    } else { 
    281281        $result = dbquery("UPDATE ".$db_prefix."configuration SET cfg_value = '".$lastpoll."' WHERE cfg_name = 'm2f_last_polled')"); 
     
    497497    } 
    498498 
    499     // update the status table 
     499    // update the poll timers and the status record 
     500    $lastpoll = $polltime + 1; 
    500501    $result = dbquery("UPDATE ".$db_prefix."configuration SET cfg_value = '".$polltime."' WHERE cfg_name = 'm2f_last_polled')"); 
    501502    $settings['m2f_last_polled'] = $polltime; 
Note: See TracChangeset for help on using the changeset viewer.