diff --git a/server/SHServ/Models/Scripts.php b/server/SHServ/Models/Scripts.php index bb354a8..7dce501 100644 --- a/server/SHServ/Models/Scripts.php +++ b/server/SHServ/Models/Scripts.php @@ -155,7 +155,7 @@ "filename" => $script_from_control["attributes"]["filename"], "path" => $script_from_control["attributes"]["path"], "created_by" => $script_from_control["attributes"]["author"], - "scope" => $script_from_control["attributes"]["classname"] ?? null, + "scope" => isset($script_from_control["attributes"]["classname"]) ? substr(strrchr($script_from_control["attributes"]["classname"], "\\"), 1) : null, ]; if($script_entity) {