From: x2000habouzit Date: Fri, 29 Oct 2004 02:16:42 +0000 (+0000) Subject: details + bugfix X-Git-Tag: xorg/old~1141 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=71a4fe5a706d0150ba7415d59e29de576e85567b;p=platal.git details + bugfix --- diff --git a/include/xorg.plugin.inc.php b/include/xorg.plugin.inc.php index c7d0a09..d243fd8 100644 --- a/include/xorg.plugin.inc.php +++ b/include/xorg.plugin.inc.php @@ -18,7 +18,7 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: xorg.plugin.inc.php,v 1.2 2004-10-29 01:51:32 x2000habouzit Exp $ + $Id: xorg.plugin.inc.php,v 1.3 2004-10-29 02:16:42 x2000habouzit Exp $ ***************************************************************************/ @@ -51,7 +51,7 @@ class XOrgPlugin { */ function make_url($params) { $get = Array(); - $args = empty($params) ? Array() : $params; + $args = isset($params) ? $params : Array(); if(!is_array($args)) { if(count($this->_get_vars)!=1) { diff --git a/templates/include/trombi.tpl b/templates/include/trombi.tpl index 577410c..74f5987 100644 --- a/templates/include/trombi.tpl +++ b/templates/include/trombi.tpl @@ -17,7 +17,7 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: trombi.tpl,v 1.2 2004-10-29 02:04:24 x2000habouzit Exp $ + $Id: trombi.tpl,v 1.3 2004-10-29 02:16:43 x2000habouzit Exp $ ***************************************************************************} {dynamic} @@ -29,7 +29,9 @@ {/if} -  [ PHOTO ] + +  [ PHOTO ] + {if $trombi_admin && $smarty.session.perms eq 'admin'} [admin]