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

[email protected] (Yannick Torres)
Newsgroups php.doc.web
Message-ID <[email protected]>
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;
     }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.