From: Michael Dale Date: Tue, 28 Jul 2009 17:38:33 +0000 (+0000) Subject: checking for session_id() was preventing updates (just put a @ infront to ignore... X-Git-Tag: 1.31.0-rc.0~40666 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22articles_versions%22%2C%22id_article=%24id_article%22%29%20.%20%22?a=commitdiff_plain;h=d7726111358f62d767dc0de3bbb1421d7875ee02;p=lhc%2Fweb%2Fwiklou.git checking for session_id() was preventing updates (just put a @ infront to ignore E_NOTICE for php 4.3.3 and greater ) --- diff --git a/includes/HttpFunctions.php b/includes/HttpFunctions.php index db766a78fb..e4b73f9a82 100644 --- a/includes/HttpFunctions.php +++ b/includes/HttpFunctions.php @@ -556,7 +556,7 @@ class simpleFileWriter { public function update_session_progress(){ $status = Status::newGood(); // start the session (if nessesary) - if( session_id() == '' && session_start() === false){ + if( @session_start() === false){ wfDebug( __METHOD__ . ' could not start session' ); exit( 0 ); }