]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/holiday_functions.php
Extension ext-network continued:
[mailer.git] / inc / libs / holiday_functions.php
index bef825a89b4f5a944cc885f64b0de652d9204d42..b231b060468049186cc6d33be1874b75934139e0 100644 (file)
@@ -16,8 +16,8 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
- * For more information visit: http://www.mxchange.org                  *
+ * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
+ * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
  * it under the terms of the GNU General Public License as published by *
@@ -44,14 +44,14 @@ if (!defined('__SECURITY')) {
 function stopHolidays () {
        // Let's find some expired holiday requests...
        $result_stop = SQL_QUERY("SELECT
-       `userid`, `holiday_start`, `holiday_end`, `comments`
+       `userid`,`holiday_start`,`holiday_end`,`comments`
 FROM
        `{?_MYSQL_PREFIX?}_user_holidays`
 WHERE
        `holiday_end` <= UNIX_TIMESTAMP()
 ORDER BY
        `userid` ASC", __FUNCTION__, __LINE__);
-       if (SQL_NUMROWS($result_stop) > 0) {
+       if (!SQL_HASZERONUMS($result_stop)) {
                // We foud at least one
                $admin = '';