]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-holiday.php
Huge rewrite of default parameters, ext-network continued:
[mailer.git] / inc / modules / member / what-holiday.php
index e9ec739204e1c4da2c43f43b196b5146fa58e312..973f158538a29faf6215086f219c631bce996c04 100644 (file)
@@ -82,8 +82,8 @@ if ((SQL_NUMROWS($result1) == 1) || (SQL_NUMROWS($result2) == 1)) {
        $content = merge_array($content, SQL_FETCHARRAY($result2));
 
        // Fix missing entries
-       if (empty($content['timestamp'])) $content['timestamp'] = 0;
-       if (empty($content['timestamp_ordered'])) $content['timestamp_ordered'] = 0;
+       if (empty($content['timestamp'])) $content['timestamp'] = '0';
+       if (empty($content['timestamp_ordered'])) $content['timestamp_ordered'] = '0';
 
        if ((($content['timestamp'] + getConfig('holiday_lock')) > time()) || (($content['timestamp_ordered'] + getConfig('holiday_lock')) > time())) {
                // Mail order is to close away!