From 877f6db3f37415442e58055d3bf31d08c06dd5d8 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Wed, 15 Sep 2010 20:03:59 +0000 Subject: [PATCH] no buttons in restricted mode --- lam/lib/html.inc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lam/lib/html.inc b/lam/lib/html.inc index 1dc351b0..22c5cf27 100644 --- a/lam/lib/html.inc +++ b/lam/lib/html.inc @@ -530,6 +530,11 @@ class htmlButton extends htmlElement { * @return array List of input field names and their type (name => type) */ function generateHTML($module, $input, $values, $restricted, &$tabindex, $scope) { + if ($restricted) { + // no buttons in restricted mode + logNewMessage(LOG_ERR, 'Meta HTML: Requested button in restricted mode.'); + return array(); + } $value = ''; $style = ''; $class = '';