[geeklog-hg] geeklog: initialize links array to avoid errors for users with o...

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Thu May 17 03:09:13 EDT 2012


changeset 8703:43a0ddb69d93
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/43a0ddb69d93
user: Dirk Haun <dirk at haun-online.de>
date: Thu May 17 09:06:37 2012 +0200
description:
initialize links array to avoid errors for users with only minimal admin rights when displaying the admins block (bug #0001447)

diffstat:

 public_html/lib-common.php |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff -r 951ddfe66a70 -r 43a0ddb69d93 public_html/lib-common.php
--- a/public_html/lib-common.php	Tue May 15 23:35:09 2012 +0900
+++ b/public_html/lib-common.php	Thu May 17 09:06:37 2012 +0200
@@ -3248,6 +3248,8 @@
 
     if( SEC_isModerator() OR SEC_hasRights( 'story.edit,block.edit,topic.edit,user.edit,plugin.edit,user.mail,syndication.edit', 'OR' ) OR ( $num_plugins > 0 ) OR SEC_hasConfigAcess())        
     {
+        $link_array = array();
+
         // what's our current URL?
         $thisUrl = COM_getCurrentURL();
 



More information about the geeklog-cvs mailing list