Changeset 686 for trunk/phpbms/modules/base/cron.php
- Timestamp:
- 12/21/09 16:58:44 (2 years ago)
- Files:
-
- 1 modified
-
trunk/phpbms/modules/base/cron.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpbms/modules/base/cron.php
r665 r686 30 30 `scheduler`.`pushrecordid`, 31 31 `scheduler`.startdatetime, 32 `scheduler`.enddatetime, 32 `scheduler`.enddatetime 33 "; 34 35 if(moduleExists("mod:b2d42220-443b-fe74-dbdb-ed2c0968c38c", $phpbms->modules)){ 36 $querystatement .= " 37 , 33 38 `tabledefs`.`maintable`, 34 39 `modules`.`name` AS `modulename` 35 40 FROM 41 "; 42 $querystatement .= " 36 43 (((scheduler LEFT JOIN `pushrecords` ON `scheduler`.`pushrecordid` = `pushrecords`.`uuid`) LEFT JOIN `tabledefs` ON `pushrecords`.`originuuid` = `tabledefs`.`uuid`) LEFT JOIN `modules` ON `tabledefs`.`moduleid` = `modules`.`uuid`) 37 WHERE 38 inactive = 0 39 AND startdatetime < NOW() 40 AND (enddatetime > NOW() OR enddatetime IS NULL) 44 "; 45 }else{ 46 $querystatement .= " 47 FROM 48 "; 49 $querystatement .= " 50 `scheduler` 51 "; 52 }//end if 53 54 $querystatement .= " WHERE 55 `scheduler`.inactive = '0' 56 AND `scheduler`.startdatetime < NOW() 57 AND (`scheduler`.enddatetime > NOW() OR `scheduler`.enddatetime IS NULL) 41 58 "; 42 59