Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Bug with PHP SDK

Avatar

Level 1

Just wanted to point out a bug... not sure if fixed yet in the PHP SDK:

<code>

function deleteRoom($r, $list = FALSE) {

        if ($r == null)

            throw new RTCError("parameter-required");

        return $this->delete(strtolower($r), RTCAccount::ROOM_ITEMS, $list);

    }

    //

    // delete a template

    //

    function deleteTemplate($t, $list = FALSE) {

        if ($t == null)

            throw new RTCError("parameter-required");

        return delete($t, RTCAccount::TEMPLATE_ITEMS, $list);

    }

    //

    // delete an archive

    //

    function deleteArchive($a, $list = FALSE) {

        if ($a == null)

            throw new RTCError("parameter-required");

        return delete($a, RTCAccount::ARCHIVE_ITEMS, $list);

    }

</code>

The return values for deleteTemplate and deleteArchive should be return $this->delete.....

2 Replies

Avatar

Level 4

Nice Catch Roger,

We'll be sure to fix it for the next release. 

Thanks,

Nikola

Avatar

Level 4

Ah yes, I caught this one in July but somehow my fix didn't make its way to the release branch.  Again, good catch, I'll make sure it makes it out in the next release.

I am also attaching the latest version of our lccs.php file to this thread. 

Thanks,

Nikola