Skip to content
This repository was archived by the owner on Sep 19, 2024. It is now read-only.

Commit d761346

Browse files
author
Dmitry Kochnev
committed
[BUG] Fixed warning text on count() while parsing URL with parameters for onsubmit_redirect_url
1 parent a66a8a3 commit d761346

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/Learnosity/Shortcodes/ItemsEmbed.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ private function generate_signed_request()
101101
// parsing URL properly (to respect anchor if exists)
102102
$url_parsed = parse_url($onsubmit_redirect_url);
103103
// if there are parameters in query part (all coming after ? in request)
104-
if (count($url_parsed['query']) > 0) {
104+
if ($url_parsed['query'] != '') {
105105
// adding learnosity parameter with "&" prefix
106106
// using html_entity_decode as last & is converted to "&"
107107
if (substr(html_entity_decode($url_parsed['query']), -1) != '&') {

0 commit comments

Comments
 (0)