]> git.mxchange.org Git - mailer.git/blobdiff - inc/reset/reset_holiday.php
Incomplete code added to handle absent user data
[mailer.git] / inc / reset / reset_holiday.php
index c8397325c613ee3716e7896af4cb2fb542cc254e..e678d588086df6a3359c6d8149943f939309d256 100644 (file)
@@ -78,7 +78,9 @@ WHERE
        `holiday_start` <= UNIX_TIMESTAMP() AND
        `holiday_end` > UNIX_TIMESTAMP()
 LIMIT 1",
-               array(bigintval($content['userid'])), __FILE__, __LINE__);
+                       array(bigintval($content['userid'])), __FILE__, __LINE__);
+
+               // Do we have an entry?
                if (SQL_NUMROWS($result_holiday) == 1) {
                        // Okay, this user can be send away to holiday...
                        $content = merge_array($content, SQL_FETCHARRAY($result_holiday));