Merge branch 'ent-3426-No-desaparece-la-alerta-de-PhantomJS-en-windows' into 'develop'
Fixed error with slashes - #3426 See merge request artica/pandorafms!2143 Former-commit-id: 6e78bc1fdb4de94c31c06ff98b9f2f27f2788646
This commit is contained in:
commit
c897d65f10
|
@ -366,23 +366,30 @@ function api_get_groups($thrash1, $thrash2, $other, $returnType, $user_in_db)
|
|||
$returnAllGroup = true;
|
||||
$returnAllColumns = false;
|
||||
|
||||
if (isset($other['data'][1]))
|
||||
if (isset($other['data'][1])) {
|
||||
$returnAllGroup = ( $other['data'][1] == '1' ? true : false);
|
||||
|
||||
if (isset($other['data'][2]))
|
||||
$returnAllColumns = ( $other['data'][2] == '1' ? true : false);
|
||||
}
|
||||
|
||||
$groups = users_get_groups ($user_in_db, "IR", $returnAllGroup, $returnAllColumns);
|
||||
if (isset($other['data'][2])) {
|
||||
$returnAllColumns = ( $other['data'][2] == '1' ? true : false);
|
||||
}
|
||||
|
||||
$data_groups = array();
|
||||
foreach ($groups as $id => $group) {
|
||||
$data_groups[] = array($id, $group);
|
||||
}
|
||||
$groups = users_get_groups($user_in_db, 'IR', $returnAllGroup, $returnAllColumns);
|
||||
|
||||
if (!isset($other['data'][0]))
|
||||
$separator = ';'; // by default
|
||||
else
|
||||
$separator = $other['data'][0];
|
||||
$data_groups = [];
|
||||
foreach ($groups as $id => $group) {
|
||||
$data_groups[] = [
|
||||
$id,
|
||||
$group,
|
||||
];
|
||||
}
|
||||
|
||||
if (!isset($other['data'][0])) {
|
||||
$separator = ';';
|
||||
// by default
|
||||
} else {
|
||||
$separator = $other['data'][0];
|
||||
}
|
||||
|
||||
$data['type'] = 'array';
|
||||
$data['data'] = $data_groups;
|
||||
|
|
|
@ -2843,7 +2843,7 @@ function config_check()
|
|||
);
|
||||
}
|
||||
|
||||
$result_ejecution = exec($config['phantomjs_bin'].'/phantomjs --version');
|
||||
$result_ejecution = exec('"'.io_safe_output($config['phantomjs_bin']).'/phantomjs" --version');
|
||||
if (!isset($result_ejecution) || $result_ejecution == '') {
|
||||
if ($config['language'] == 'es') {
|
||||
set_pandora_error_for_header(
|
||||
|
|
|
@ -128,8 +128,8 @@
|
|||
</div>
|
||||
<div style='height: 10px'>
|
||||
<?php
|
||||
$version = '7.0NG.731';
|
||||
$build = '190218';
|
||||
$version = '7.0NG.731';
|
||||
$build = '190218';
|
||||
$banner = "v$version Build $build";
|
||||
|
||||
error_reporting(0);
|
||||
|
|
Loading…
Reference in New Issue