Commit 1faafa78 authored by Chris Graham's avatar Chris Graham
Browse files

Fixed MANTIS-3969

parent 96d83d86
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -694,7 +694,7 @@ function calendar_matches($auth_member_id, $member_id, $restrict, $period_start,
    if (is_null($period_end)) {
        $period_end = time() + 60 * 60 * 24 * 365 * 20;
        if (is_float($period_end)) {
            $period_end = max($period_start, 2147483647 - 60 * 60 * 24 * 365 * 2); // Y-2038 issue, so bring back comfortably before that
            $period_end = max($period_start, 2147483647 - 60 * 60 * 24 * 365 * 2); // Y-2038 issue, so bring back comfortably before that // TODO: #3046 in tracker
        }
        $period_end = utctime_to_usertime($period_end);
    }
+1 −1
Original line number Diff line number Diff line
@@ -533,7 +533,7 @@ function actual_add_catalogue_category($catalogue_name, $title, $description, $n

    if (is_null($order)) {
        $order = $GLOBALS['SITE_DB']->query_select_value('catalogue_categories', 'MAX(cc_order)', array('c_name' => $catalogue_name));
        if ((is_null($order)) || ($order >= 2147483647)) {
        if ((is_null($order)) || ($order >= 2147483647)) { // TODO: #3046 in tracker
            $order = 0;
        } else {
            $order++;
+1 −1
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@ function init__content2()
        define('METADATA_HEADER_YES', 1);
        define('METADATA_HEADER_FORCE', 2);

        define('ORDER_AUTOMATED_CRITERIA', 2147483647); // lowest order, shared for all who care not about order, so other SQL ordering criterias take precedence
        define('ORDER_AUTOMATED_CRITERIA', 2147483647); // lowest order, shared for all who care not about order, so other SQL ordering criterias take precedence // TODO: #3046 in tracker
    }
}

+2 −2
Original line number Diff line number Diff line
@@ -901,7 +901,7 @@ function add_download($category_id, $name, $url, $description, $author, $additio
        }
    }

    if (($file_size < 0) || ($file_size > 2147483647)) {
    if (($file_size < 0) || ($file_size > 2147483647)) { // TODO: #3046 in tracker
        $file_size = 2147483647;
    }

@@ -1099,7 +1099,7 @@ function edit_download($id, $category_id, $name, $url, $description, $author, $a
        }
    }

    if (($file_size < 0) || ($file_size > 2147483647)) {
    if (($file_size < 0) || ($file_size > 2147483647)) { // TODO: #3046 in tracker
        $file_size = 2147483647;
    }

+1 −1
Original line number Diff line number Diff line
@@ -291,7 +291,7 @@ function clean_file_size($bytes)
    if (is_null($bytes)) {
        return do_lang('UNKNOWN') . ' bytes';
    }
    if ($bytes == 2147483647) {
    if ($bytes == 2147483647) { // TODO: #3046 in tracker
        return do_lang('UNKNOWN') . ' bytes';
    }
    if (floatval($bytes) > 2.0 * 1024.0 * 1024.0 * 1024.0) {
Loading