Only update resolution if session variables don't exist

Tune print-graphrow.inc.php to avoid last graph going to a new line in certain cases
This commit is contained in:
Louis Bailleul
2015-11-20 12:47:56 +00:00
parent 4731e8621b
commit b1fd1b3137
3 changed files with 5 additions and 2 deletions
+4
View File
@@ -184,6 +184,10 @@ else {
<?php
if(empty($_SESSION['screen_width']) && empty($_SESSION['screen_height'])) {
echo "<script>updateResolution();</script>";
}
if ((isset($vars['bare']) && $vars['bare'] != "yes") || !isset($vars['bare'])) {
if ($_SESSION['authenticated']) {
require 'includes/print-menubar.php';