AngelAlvarado / drupalauth

Automatically exported from code.google.com/p/drupalauth
0 stars 0 forks source link

PHP Notices and bug report #3

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
1.)
Notice: Use of undefined constant DRUPAL_ROOT - assumed 'DRUPAL_ROOT' in 
/simplesamlphp/modules/drupalauth/lib/Auth/Source/UserPass.php on line 107
To fix change line 107 from
define(DRUPAL_ROOT, $drupalAuthConfig->getDrupalroot());
to
define('DRUPAL_ROOT', $drupalAuthConfig->getDrupalroot());

2.)
Strict standards: Creating default object from empty value in 
/var/www/bloodhound/simplesamlphp/modules/drupalauth/lib/Auth/Source/UserPass.ph
p on line 119

to fix add the following below line 118
if(!is_object($user)){
  $user = new stdClass();
}

so that:

global $user;
$user->uid = 0;

becomes:

global $user;
if(!is_object($user)){
  $user = new stdClass();
}
$user->uid = 0;

Original issue reported on code.google.com by duplessi...@gmail.com on 19 Apr 2012 at 11:02

GoogleCodeExporter commented 8 years ago
I agree :)

Original comment by e.cuni...@gmail.com on 11 Oct 2012 at 12:15