From: Andrew Dolgov Date: Tue, 19 Feb 2013 12:56:43 +0000 (+0400) Subject: mute warnings caused by session_start() to deal with potential ps_files_cleanup_dir... X-Git-Tag: 1.7.1~69 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=acfbab375d18e93ddc82c3e8fe1e5784593f5b40;p=tt-rss.git mute warnings caused by session_start() to deal with potential ps_files_cleanup_dir stuff --- diff --git a/api/index.php b/api/index.php index 9b92dcad..14715794 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 bd07c199..2cef1d91 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(); } ?>