diff options
author | M.Gergo | 2021-05-17 17:50:05 +0200 |
---|---|---|
committer | M.Gergo | 2021-05-17 17:50:05 +0200 |
commit | ef8b3fd973fa34b303370d5acc21744e57bca507 (patch) | |
tree | 67a42f55b0f36f024c33d8892c1112e8c5746556 /mayor-orig/mayor-portal/www/include | |
parent | fb24a50c54d5776468e49def08aea44c4077eb47 (diff) | |
download | mayor-rev4787.tar.gz mayor-rev4787.zip |
Rev: 4787rev4787
Diffstat (limited to 'mayor-orig/mayor-portal/www/include')
-rw-r--r-- | mayor-orig/mayor-portal/www/include/modules/portal/base/rights.php | 6 | ||||
-rw-r--r-- | mayor-orig/mayor-portal/www/include/modules/portal/share/hirek.php | 6 |
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']."'"; |