• Welcome to ForumKorner!
    Join today and become a part of the community.

Error in points

Status
Not open for further replies.

yahya

Member
Reputation
0
When i went to
Code:
http://www.marketforums.org/newpoints.php
It said:
The following warnings occurred:
Warning [2] number_format() expects parameter 1 to be double, string given - Line: 356 - File: inc/plugins/newpoints.php PHP 5.3.6 (Linux)
File Line Function
PHP:
 	  	errorHandler->error
/inc/plugins/newpoints.php 	356 	number_format
/newpoints.php 	120 	newpoints_format_points[/quote]
 
Reputation
0
Already been discussed.

I'd assume the fix for this is to wrap the the first paramater passed into number_format on line 356 in a floatval() function.

Pseudocode:
Code:
number_format(floatval($the_number_that_wants_to_be_a_string));

This would force PHP to process the apparantly passed string as a double (or float).

I haven't tested this, I'm just making an educated assumption.
 

LMCampbell

User is banned.
Reputation
0
Crayo said:
I'll try get on it today, I'm hesitant to touch it because one mistake and everyone's points are history.

You could always backup everyone's points.
It is a function that Newoints supply :)
 
Status
Not open for further replies.
Top