fixed minor errors

This commit is contained in:
daniel 2018-06-14 18:14:54 +02:00
parent 80ddcbe1b6
commit 9e229e6228
2 changed files with 7 additions and 6 deletions

View File

@ -13,13 +13,14 @@
// GNU General Public License for more details.
// Global & session manageme
session_id($_GET["session_id"]);
$user = file_get_contents(session_save_path() . "/pansess_" . session_id());
if (file_exists(session_save_path() . "/pansess_" . session_id())) {
$user = file_get_contents(session_save_path() . "/pansess_" . session_id());
}
session_start();
$_SESSION["id_usuario"] = $user;
if (isset($user)) {
$_SESSION["id_usuario"] = $user;
}
session_write_close();

View File

@ -3238,7 +3238,7 @@ function generator_chart_to_pdf($type_graph_pdf, $params, $params_combined = fal
$session_id = session_id();
$result = exec(
$config['phantomjs_bin'] ."/phantomjs " . $file_js . " " .
io_safe_output($config['phantomjs_bin']) . DIRECTORY_SEPARATOR ."phantomjs " . $file_js . " " .
$url . " '" .
$type_graph_pdf . "' '" .
$params_encode_json . "' '" .