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
BedrockMission!

Learn More

View all

Sign in to view all badges

Bug with PHP SDK

Avatar

Avatar
Level 1
rogerwu99
Level 1

Likes

0 likes

Total Posts

4 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
rogerwu99
Level 1

Likes

0 likes

Total Posts

4 posts

Correct Reply

0 solutions
View profile
rogerwu99
Level 1

16-10-2011

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.....

Replies

Avatar

Avatar
Boost 5
Level 2
nzezelj
Level 2

Likes

14 likes

Total Posts

82 posts

Correct Reply

6 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile

Avatar
Boost 5
Level 2
nzezelj
Level 2

Likes

14 likes

Total Posts

82 posts

Correct Reply

6 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile
nzezelj
Level 2

16-10-2011

Nice Catch Roger,

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

Thanks,

Nikola

Avatar

Avatar
Boost 5
Level 2
nzezelj
Level 2

Likes

14 likes

Total Posts

82 posts

Correct Reply

6 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile

Avatar
Boost 5
Level 2
nzezelj
Level 2

Likes

14 likes

Total Posts

82 posts

Correct Reply

6 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile
nzezelj
Level 2

17-10-2011

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