Skip to content

Commit

Permalink
Correctly create associative arrays in a few places
Browse files Browse the repository at this point in the history
  • Loading branch information
PseudoKnight committed Sep 9, 2019
1 parent 340b111 commit 1b3a412
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public static String getExceptionName(ConfigRuntimeException ex) {
* @return
*/
public CArray getExceptionObject() {
CArray ret = new CArray(Target.UNKNOWN);
CArray ret = CArray.GetAssociativeArray(Target.UNKNOWN);
ret.set("classType", this.getExceptionType(), Target.UNKNOWN);
ret.set("message", this.getMessage());
CArray stackTrace = new CArray(Target.UNKNOWN);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ public String toString() {
}

public CArray getObjectFor() {
CArray element = new CArray(Target.UNKNOWN);
CArray element = CArray.GetAssociativeArray(Target.UNKNOWN);
element.set("id", getProcedureName());
try {
String name = "Unknown file";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public Mixed exec(Target t, Environment environment, Mixed... args) throws Confi
TaskManager tm = environment.getEnv(GlobalEnv.class).GetTaskManager();
CArray ret = new CArray(t);
for(TaskHandler task : tm.getTasks()) {
CArray tt = new CArray(t);
CArray tt = CArray.GetAssociativeArray(t);
tt.set("id", new CInt(task.getID(), t), t);
tt.set("type", task.getType().name());
tt.set("state", task.getState().name());
Expand Down

0 comments on commit 1b3a412

Please sign in to comment.