The cell_align_left is defined in common.inc.php so it should available in all cases

Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
Michal Čihař 2016-02-17 11:35:36 +01:00
parent 8bf212f6c3
commit a411cd0ca4

View File

@ -1104,12 +1104,8 @@ class Util
unset($GLOBALS['using_bookmark_message']);
}
// In an Ajax request, $GLOBALS['cell_align_left'] may not be defined. Hence,
// check for it's presence before using it
$retval .= '<div class="result_query"'
. ( isset($GLOBALS['cell_align_left'])
? ' style="text-align: ' . $GLOBALS['cell_align_left'] . '"'
: '' )
. ' style="text-align: ' . $GLOBALS['cell_align_left'] . '"'
. '>' . "\n";
if ($message instanceof Message) {