svn: /web/doc-editor/trunk/php/ AccountManager.php

From: Date: Sun, 19 Dec 2010 20:06:33 +0000
Subject: svn: /web/doc-editor/trunk/php/ AccountManager.php
Groups: php.doc.web 
Request: Send a blank email to doc-web+get-1896@lists.php.net to get a copy of this message
yannick Sun, 19 Dec 2010 20:06:33 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=306465 Log: Fix when there is no lang admin for a lang Changed paths: U web/doc-editor/trunk/php/AccountManager.php Modified: web/doc-editor/trunk/php/AccountManager.php =================================================================== --- web/doc-editor/trunk/php/AccountManager.php 2010-12-19 20:04:06 UTC (rev 306464) +++ web/doc-editor/trunk/php/AccountManager.php 2010-12-19 20:06:33 UTC (rev 306465) @@ -350,6 +350,10 @@ public function isLangAdmin() { + if( !isset($this->appConf[$this->project]['project.langadmin.'.$this->vcsLang]) ) { + return false; + } + $admin = explode(",", $this->appConf[$this->project]['project.langadmin.'.$this->vcsLang]); return ( in_array($this->vcsLogin, $admin) ) ? true : false; }

« previous php.doc.web (#1896) next »