Jump to content

Unsupported operand types


ElectricWizard

Recommended Posts

you could use either of the following -

$row = $balanceQ->fetch_row();
$balance = $row[0];

or

list($balance) = $balanceQ->fetch_row();

 

Both of those didn't give any errors, but the non clearing of the balance problem is still there.

 

There are about four or five edits I did to this code which might potentially cause problems. They are:

 

Line 27...

$lastClaim = strtotime(current($lastClaimQ->fetch_assoc())); 

...used to be:

$lastClaim = strtotime($lastClaimQ->fetch_row()[0]); 

Line 54...

$referral = $referralQ->fetch_assoc();

...used to be:

$referral = $referralQ->fetch_row()[0];

Lines 87 - 89...

$row = $balanceQ->fetch_assoc();
				if($row['balance'] >= 0){
					$url = "https://inputs.io/api?action=send&key=$apiKey&pin=$apiPin&note=" . urlencode($cashoutMessage . " | MyFaucet Powered") . "&address=" . urlencode($email) . "&amount=" . ($row['balance'] / 100000000);

...used to be: 

if($balanceQ->fetch_row()[0] >= 0){

					$url = "https://inputs.io/api?action=send&key=$apiKey&pin=$apiPin&note=" . urlencode($cashoutMessage . " | MyFaucet Powered") . "&address=" . urlencode($email) . "&amount=" . ($balance / 100000000);

I am not sure if those tell you anything else that might be helpful.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.