diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-10-07 17:25:06 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-10-15 10:48:19 +0300 |
commit | 6c2dbf939c69ff2e49377517b5f5cb1b921ad943 (patch) | |
tree | 2cd09dbb61a0920dbe00cf5db9fb374e6f3149a8 /templates | |
parent | 7a90d052283e4493550512c3d2795569de5c2329 (diff) |
Fix undefined index warning
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/documents.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/documents.php b/templates/documents.php index 34b19442..a64a0f51 100644 --- a/templates/documents.php +++ b/templates/documents.php @@ -5,7 +5,7 @@ var richdocuments_token = '<?php p($_['token']) ?>'; var richdocuments_urlsrc = '<?php p($_['urlsrc']) ?>'; var richdocuments_path = '<?php p($_['path']) ?>'; - var richdocuments_userId = '<?php p($_['userId']) ?>'; + var richdocuments_userId = <?php isset($_['userId']) ? p('\'' . $_['userId'] . '\'') : p('null') ?>; var richdocuments_instanceId = '<?php p($_['instanceId']) ?>'; var richdocuments_canonical_webroot = '<?php p($_['canonical_webroot']) ?>'; var richdocuments_directEdit = <?php isset($_['direct']) ? p('true') : p('false') ?>; |