More rewrites, and output-mode fixed (we should documentate this)
[mailer.git] / inc / modules / admin / what-del_holiday.php
index 7435c85ec3c830e3cd59a2a15c618eba1b209364..ab27f4813bcb71b7da77a10dc4d63d2b961999e4 100644 (file)
@@ -64,7 +64,7 @@ WHERE `id`=%s LIMIT 1", array(bigintval($id)), __FILE__, __LINE__);
 
                        // Update user's account
                        SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_data`
-SET `holiday_active`='N', holiday_activated='0'
+SET `holiday_active`='N', holiday_activated=0
 WHERE `userid`=%s LIMIT 1", array(bigintval($userid)), __FILE__, __LINE__);
 
                        // Remove holiday
@@ -73,8 +73,8 @@ WHERE `id`=%s LIMIT 1", array(bigintval($id)), __FILE__, __LINE__);
 
                        // Prepare loaded data for the
                        $content = array(
-                               'start' => generateDateTime($start, '3'),
-                               'end'   => generateDateTime($end  , '3')
+                               'start' => generateDateTime($start, 3),
+                               'end'   => generateDateTime($end  , 3)
                        );
 
                        // Send email to user