Skip to content

Commit e6f490f

Browse files
committed
Prevent strict mode warning
1 parent 96b9a94 commit e6f490f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

JSInjectorExternalModule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ function parse_settings($project_id, $contexts) {
339339
}
340340
foreach ($ss as $this_key => $_) {
341341
if (strpos($this_key, "_") === false) continue;
342-
$this_context = array_pop(explode("_", $this_key, 2));
342+
$this_context = explode("_", $this_key, 2)[1];
343343
if (in_array($this_context, $contexts, true)) {
344344
$val = $ss[$this_key]["system_value"][$i];
345345
if ($val == "include") {

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ The original version of this external module was basically just a modified versi
8585

8686
Version | Description
8787
------- | ------------------
88+
2.1.1 | Minor code change to prevent a PHP strict mode warning.
8889
2.1.0 | Support for addition all system page: Home, My Projects, New Project, Help & FAQ, Training Videos, Send-It, Sponsor Dashboard.<br>Bumped framework version to 12.
8990
2.0.2 | Removed class constructor; PHP8-related fix.
9091
2.0.1 | Bugfix (broken form list limitation).

0 commit comments

Comments
 (0)