Skip to content

Commit

Permalink
Merge pull request #1297 from tripal/1296-tv3-undefined-collections
Browse files Browse the repository at this point in the history
Issue 1296 initialize $collections array
  • Loading branch information
laceysanderson committed Sep 12, 2022
2 parents 6c01c89 + 72d89ff commit 2de02c0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tripal/api/tripal.collections.api.inc
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ function tripal_expire_collections() {
$max_days = variable_get('tripal_data_collections_lifespan', 30);
$ctime = time();

$collections = [];
$query = db_select('tripal_collection', 'tc');
$query->fields('tc', ['collection_id']);
$query->where("((($ctime - create_date) / 60) / 60) / 24 >= $max_days");
Expand Down

0 comments on commit 2de02c0

Please sign in to comment.