Deprecated PHP code
Posted: Wed Jun 17, 2009 8:43 pm
I'm debugging a Facebook application, and I get the following error message:
Warning: Call-time pass-by-reference has been deprecated in /usr/www/users/adminclt/fb/fbapp/facebook/classes/app.class.php on line 24
I've been trying to figure it out, but I can't seem to. Line 24 of the file is line 6 here.
Here's the relevant code:
Thanks in advance!
Warning: Call-time pass-by-reference has been deprecated in /usr/www/users/adminclt/fb/fbapp/facebook/classes/app.class.php on line 24
I've been trying to figure it out, but I can't seem to. Line 24 of the file is line 6 here.
Here's the relevant code:
Code: Select all
function __construct($facebook=NULL,$isAjax=false) {
// initialize class
require_once (PATH_CORE.'/classes/db.class.php');
$this->db=new cloudDatabase();
require_once (PATH_CORE.'/classes/systemStatus.class.php');
$this->ssObj=new systemStatus($this->db);
$this->ssObj->getProperties(&$this);
if (!is_null($facebook))
$this->facebook=&$facebook; // must do before setupTemplates();
require_once (PATH_FACEBOOK.'/classes/session.class.php');
$this->session=new session($this);
$this->isAjax=$isAjax;
if (!$isAjax) {
$this->session->setupSession();
} else {
// to do - setup session via jscript rather than POST
}
}