mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-11 09:35:00 +00:00
fix getDocumentsExpired(), need to create temp tables
This commit is contained in:
parent
e718520baa
commit
dd146a6f5e
|
@ -670,6 +670,10 @@ class SeedDMS_Core_DMS {
|
|||
function getDocumentsExpired($date, $user=null) { /* {{{ */
|
||||
$db = $this->getDB();
|
||||
|
||||
if (!$db->createTemporaryTable("ttstatid") || !$db->createTemporaryTable("ttcontentid")) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if(is_int($date)) {
|
||||
$ts = mktime(0, 0, 0) + $date * 86400;
|
||||
} elseif(is_string($date)) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user