Skip to content

Commit af128c3

Browse files
committed
Fix PHP warning on print page.
1 parent c86603f commit af128c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

template/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function decode_file($filename) {
2727
}
2828

2929
if (isset($_GET["_escaped_fragment_"]) || isset($_GET["print"])) {
30-
$fragment = $_GET["_escaped_fragment_"] ? $_GET["_escaped_fragment_"] : $_GET["print"];
30+
$fragment = isset($_GET["_escaped_fragment_"]) ? $_GET["_escaped_fragment_"] : $_GET["print"];
3131
try {
3232
if (preg_match('/^\/api\/([^-]+)/', $fragment, $m)) {
3333
$className = $m[1];

0 commit comments

Comments
 (0)