Unofficial JMB Support Forums

UnofficialJMBSupport.Com => LinkX Discussion => Topic started by: mac500 on January 10, 2014, 09:53:34 PM

Title: failure after edit link
Post by: mac500 on January 10, 2014, 09:53:34 PM
everything works fine, but if i edit a link i.e. set it from regular to premium i get an error in admin section.

 
Code: [Select]
(Weight: 1.00; Clicks: 0; Comments: 0; Ratings: 0; Avg Rating: {"message":"number_format() expects parameter 1 to be double, string given on line 22 of ajax.php(1660) : eval()'d code","status":"Failure"}

pls look at ht attachment.
 
Title: Re: failure after edit link
Post by: mac500 on January 11, 2014, 04:48:08 PM
i fixed it with this 2 mysql commands:

UPDATE `lx_links` SET `rating_avg`=0 WHERE `rating_avg` IS NULL

ALTER TABLE `lx_links` MODIFY `rating_avg` float DEFAULT 0;