aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/mayor-base/www/skin/default
diff options
context:
space:
mode:
Diffstat (limited to 'mayor-orig/mayor-base/www/skin/default')
-rw-r--r--mayor-orig/mayor-base/www/skin/default/base/html/base.phtml2
1 files changed, 1 insertions, 1 deletions
diff --git a/mayor-orig/mayor-base/www/skin/default/base/html/base.phtml b/mayor-orig/mayor-base/www/skin/default/base/html/base.phtml
index 78a5dea8..b018c8d4 100644
--- a/mayor-orig/mayor-base/www/skin/default/base/html/base.phtml
+++ b/mayor-orig/mayor-base/www/skin/default/base/html/base.phtml
@@ -180,7 +180,7 @@ function ajaxUpdaterForm($id, $url, $params, $method, $forEcho=false) {
$t = '<form method="'.$method.'" action="'.href($url.'&toSkin='.$skin).'" class="onLoadUpdate" id="'.$id.'">'."\n";
if ($_SESSION['mayorToken']!='') $t .= '<input class="mayorToken" type="hidden" name="mayorToken" value="'.$_SESSION['mayorToken'].'" />';
- foreach ($params as $name => $value) $t .= '<input type="hidden" name="'.$name.'" value="'.$value.'" />'."\n";
+ if (is_array($params)) foreach ($params as $name => $value) $t .= '<input type="hidden" name="'.$name.'" value="'.$value.'" />'."\n";
$t .= '</form>';
if ($forEcho) return $t;
else echo $t;