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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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