aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/mayor-portal/www/include
diff options
context:
space:
mode:
Diffstat (limited to 'mayor-orig/mayor-portal/www/include')
-rw-r--r--mayor-orig/mayor-portal/www/include/modules/portal/base/rights.php6
-rw-r--r--mayor-orig/mayor-portal/www/include/modules/portal/share/hirek.php6
2 files changed, 7 insertions, 5 deletions
diff --git a/mayor-orig/mayor-portal/www/include/modules/portal/base/rights.php b/mayor-orig/mayor-portal/www/include/modules/portal/base/rights.php
index c1a5c039..2008eecf 100644
--- a/mayor-orig/mayor-portal/www/include/modules/portal/base/rights.php
+++ b/mayor-orig/mayor-portal/www/include/modules/portal/base/rights.php
@@ -2,9 +2,11 @@
if (_POLICY=='private' && @memberOf(_USERACCOUNT, 'hirekadmin')) {
$AUTH['my']['categories'][] = 'hirekadmin';
- define('__HIREKADMIN',true);
+ define('__HIREKADMIN', true);
+ define('_FILEMANAGER_ENABLED', true);
} else {
- define('__HIREKADMIN',false);
+ define('__HIREKADMIN', false);
+ define('_FILEMANAGER_ENABLED', false);
}
?>
diff --git a/mayor-orig/mayor-portal/www/include/modules/portal/share/hirek.php b/mayor-orig/mayor-portal/www/include/modules/portal/share/hirek.php
index 7b59782a..08b5ee63 100644
--- a/mayor-orig/mayor-portal/www/include/modules/portal/share/hirek.php
+++ b/mayor-orig/mayor-portal/www/include/modules/portal/share/hirek.php
@@ -18,9 +18,9 @@
$tolDt = $SET['tolDt']; $igDt = $SET['igDt'];
if ($tolDt!='') $W[] = "kdt<='$tolDt'";
if ($igDt!='') $W[] = "vdt>='$igDt'";
- if (count($SET['flag'])>0) $W[] = "flag IN (".implode(',',$SET['flag']).")";
- if (count($SET['class'])>0) $W[] = "class IN (".implode(',',$SET['class']).")";
- if (count($SET['cid'])>0) $W[] = "cid IN (".implode(',',$SET['cid']).")";
+ if (is_array($SET['flag']) && count($SET['flag'])>0) $W[] = "flag IN (".implode(',',$SET['flag']).")";
+ if (is_array($SET['class']) && count($SET['class'])>0) $W[] = "class IN (".implode(',',$SET['class']).")";
+ if (is_array($SET['cid']) && count($SET['cid'])>0) $W[] = "cid IN (".implode(',',$SET['cid']).")";
if (is_array($SET['kategoria']) && count($SET['kategoria'])>0 && !is_null($SET['kategoria'][0]))
$W[] = "kategoriaId IN (".implode(',',$SET['kategoria']).")";
if ($SET['lang']!='') $W[] = "lang='".$SET['lang']."'";