HOME | DOWNLOAD | SUPPORT | INSTALLATION | FAQ | SUPPORT FORUM | DEMO
 ° Forums ° Statistics ° Registration ° Search ° Manual °
SkaLinks Forum / Technical Support / Bug in add_url.php
Author Message
Bart
Member

Posted: 13 Jun 2005 16:04:57 ° Edited by: Bart


Hiya guys,

First of all: pretty nice work. I noticed something strange in the add_url.php script. Around line 85 the following code is found:

$link_info = $SkaLinks->GetLinksSearch( $cat_id, 0, 1 );

Strange... Because the GetLinksSearch method in the SkaLinks class is expecting an string called "url" as first parameter. Not an integer...

I didn't notice anything wrong yet thoug. But I guess this is a typo?

[EDIT]

I just noticed that one line down another bug showed up:

$link_id = $link_info['ID'];

is wrong. GetLinkSearch returns a twodimensional array (for whatever reason, prolly the sql retrieval code is bad).. So the right way to grab this ID is:

$link_id = $link_info[0]['ID'];

Add the [0] for the outer array...

Good luck :)

skalinks
Admin

Posted: 13 Jun 2005 22:38:53


Ok, thank very much for your note! We fixed this bug, and this error will be corrected in new version os SkaLinks ver.1.2.