- $result_stop = SQL_QUERY("SELECT 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) {
+ $result_stop = SQL_QUERY("SELECT
+ `userid`,`holiday_start`,`holiday_end`,`comments`
+FROM
+ `{?_MYSQL_PREFIX?}_user_holidays`
+WHERE
+ `holiday_end` <= UNIX_TIMESTAMP()
+ORDER BY
+ `userid` ASC", __FUNCTION__, __LINE__);
+ if (!SQL_HASZERONUMS($result_stop)) {