X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=tests%2Fplugins%2Ftest%2Ftest.php;h=03be4f4e8c997bd9eb875ad1f42a65bf4d294eb7;hb=0d930454a2892715e691f9c7713e26a3bb4ee96c;hp=ae5032dd36a5b19fc999c387c008ff781481c70c;hpb=bea062149ebcb4663861edb1cc0a32faf85b273f;p=github%2Fshaarli%2FShaarli.git diff --git a/tests/plugins/test/test.php b/tests/plugins/test/test.php index ae5032dd..03be4f4e 100644 --- a/tests/plugins/test/test.php +++ b/tests/plugins/test/test.php @@ -13,6 +13,9 @@ function hook_test_random($data) $data[1] = 'page test'; } elseif (isset($data['_LOGGEDIN_']) && $data['_LOGGEDIN_'] === true) { $data[1] = 'loggedin'; + } elseif (array_key_exists('_LOGGEDIN_', $data)) { + $data[1] = 'loggedin'; + $data[2] = $data['_LOGGEDIN_']; } else { $data[1] = $data[0]; }