mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 21:51:32 +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) { /* {{{ */
|
function getDocumentsExpired($date, $user=null) { /* {{{ */
|
||||||
$db = $this->getDB();
|
$db = $this->getDB();
|
||||||
|
|
||||||
|
if (!$db->createTemporaryTable("ttstatid") || !$db->createTemporaryTable("ttcontentid")) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if(is_int($date)) {
|
if(is_int($date)) {
|
||||||
$ts = mktime(0, 0, 0) + $date * 86400;
|
$ts = mktime(0, 0, 0) + $date * 86400;
|
||||||
} elseif(is_string($date)) {
|
} elseif(is_string($date)) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user