From acfbab375d18e93ddc82c3e8fe1e5784593f5b40 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 19 Feb 2013 16:56:43 +0400 Subject: [PATCH] mute warnings caused by session_start() to deal with potential ps_files_cleanup_dir stuff --- api/index.php | 2 +- include/sessions.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/index.php b/api/index.php index 9b92dcadd..147157946 100644 --- a/api/index.php +++ b/api/index.php @@ -48,7 +48,7 @@ session_id($_REQUEST["sid"]); } - session_start(); + @session_start(); if (!init_connection($link)) return; diff --git a/include/sessions.php b/include/sessions.php index bd07c1994..2cef1d91b 100644 --- a/include/sessions.php +++ b/include/sessions.php @@ -105,6 +105,6 @@ session_set_cookie_params(SESSION_COOKIE_LIFETIME); if (!defined('TTRSS_SESSION_NAME') || TTRSS_SESSION_NAME != 'ttrss_api_sid') { - session_start(); + @session_start(); } ?>