minor errata fix

This commit is contained in:
fbsanchez 2022-02-07 11:56:00 +01:00
parent e88152f596
commit 8b09c49871
1 changed files with 3 additions and 0 deletions

View File

@ -78,6 +78,9 @@ if ($delete_graph) {
if ($view_graph) {
$sql = "SELECT * FROM tgraph_source WHERE id_graph = $id_graph";
$sources = db_get_all_rows_sql($sql);
if ($sources === false) {
$sources = [];
}
$sql = "SELECT * FROM tgraph WHERE id_graph = $id_graph";
$graph = db_get_row_sql($sql);