]> git.wh0rd.org Git - tt-rss.git/commitdiff
mute warnings caused by session_start() to deal with potential ps_files_cleanup_dir...
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 19 Feb 2013 12:56:43 +0000 (16:56 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 19 Feb 2013 12:56:43 +0000 (16:56 +0400)
api/index.php
include/sessions.php

index 9b92dcaddfff0d1e3173d2adc8d31be5014f82af..147157946ab4dfdd389931334a9bd5b8d474eae8 100644 (file)
@@ -48,7 +48,7 @@
                session_id($_REQUEST["sid"]);
        }
 
-       session_start();
+       @session_start();
 
        if (!init_connection($link)) return;
 
index bd07c19949428a61bb84068962cbf89d1894fa13..2cef1d91b70ef48d194f542921d103b394b8555c 100644 (file)
        session_set_cookie_params(SESSION_COOKIE_LIFETIME);
 
        if (!defined('TTRSS_SESSION_NAME') || TTRSS_SESSION_NAME != 'ttrss_api_sid') {
-               session_start();
+               @session_start();
        }
 ?>