public static function get_calendar_settings() { global $uid; Calendar_Events::$calsettings = Database::get()->querySingle("SELECT user_id, view_type, personal_color, course_color, deadline_color, admin_color, CAST(show_personal AS UNSIGNED INTEGER) AS show_personal, CAST(show_course AS UNSIGNED INTEGER) AS show_course, CAST(show_deadline AS UNSIGNED INTEGER) AS show_deadline, CAST(show_admin AS UNSIGNED INTEGER) AS show_admin FROM personal_calendar_settings WHERE user_id = ?d", $uid); }