Stupid Operand

  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8388
  • Loc: USA

Post 3+ Months Ago

I'm being getting the following fatal error:
Quote:
Fatal error: Unsupported operand types in C:\wamp\www\Projects\CMS\includes\session.php on line 73

line 73 is:
PHP Code: [ Select ]
if((($current_time + $this->sess_expiry) - $sess_set) > $this->sess_expiry)


The code around it is:
PHP Code: [ Select ]
$current_time = time();
 
if((($current_time + $this->sess_expiry) - $sess_set) > $this->sess_expiry)
{
    return false;
}
 
  1. $current_time = time();
  2.  
  3. if((($current_time + $this->sess_expiry) - $sess_set) > $this->sess_expiry)
  4. {
  5.     return false;
  6. }
  7.  

Any help? I can't do addition/subtraction here?
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8388
  • Loc: USA

Post 3+ Months Ago

Nevermind, got it fixed.

The variable $sess_set was coming from the database, and was an array. $sess_set['session_set'] fixed it.
  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13502
  • Loc: Florida

Post 3+ Months Ago

Glad you found it. That would have been an interesting one to pipoint without knowing the data types of each variable. :)
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8388
  • Loc: USA

Post 3+ Months Ago

Yeah, I thought about it once I fixed it.... insufficient data supplied in the OP.

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 93 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.