← Back to team overview

mahara-contributors team mailing list archive

[Bug 1240846] A change has been merged

 

Reviewed:  https://reviews.mahara.org/2621
Committed: http://gitorious.org/mahara/mahara/commit/9478929f874a08a4b9adba844757b89f1c9cf031
Submitter: Son Nguyen (son.nguyen@xxxxxxxxxxxxxxx)
Branch:    master

commit 9478929f874a08a4b9adba844757b89f1c9cf031
Author: Robert Lyon <robertl@xxxxxxxxxxxxxxx>
Date:   Fri Oct 18 11:42:12 2013 +1300

Added check to see if object exists before assigning to it (bug 1240846)

Change-Id: Ic1a5175da263af5610df78491ba529a13c4d07d2
Signed-off-by: Robert Lyon <robertl@xxxxxxxxxxxxxxx>

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1240846

Title:
  Warning when requesting institution membership

Status in Mahara ePortfolio:
  In Progress

Bug description:
  1.8.0rc2

  When I request membership in an institution, I see the following
  warning right after having submitted my request as a regular user:

  [WAR] bf (lib/activity.php:375) Creating default object from empty value
  Call stack (most recent first):
  log_message("Creating default object from empty value", 8, true, true, "/home/kristina/code/mahara/htdocs/lib/activity.php", 375) at /home/kristina/code/mahara/htdocs/lib/errors.php:430
  error(2, "Creating default object from empty value", "/home/kristina/code/mahara/htdocs/lib/activity.php", 375, array(size 2)) at /home/kristina/code/mahara/htdocs/lib/activity.php:375
  ActivityType->add_urltext(array(size 2)) at /home/kristina/code/mahara/htdocs/lib/activity.php:726
  ActivityTypeInstitutionmessage->__construct(object(stdClass), false) at /home/kristina/code/mahara/htdocs/lib/activity.php:61
  handle_activity(object(stdClass), object(stdClass)) at /home/kristina/code/mahara/htdocs/lib/activity.php:34
  activity_occurred("institutionmessage", object(stdClass)) at /home/kristina/code/mahara/htdocs/lib/institution.php:301
  Institution->addRequestFromUser(object(LiveUser), "") at /home/kristina/code/mahara/htdocs/auth/user.php:835
  User->add_institution_request("institutionc", "") at /home/kristina/code/mahara/htdocs/account/institutions.php:219
  requestmembership_submit(object(Pieform), array(size 4)) at Unknown:0
  call_user_func_array("requestmembership_submit", array(size 2)) at /home/kristina/code/mahara/htdocs/lib/pieforms/pieform.php:528
  Pieform->__construct(array(size 5)) at /home/kristina/code/mahara/htdocs/lib/pieforms/pieform.php:170
  Pieform::process(array(size 5)) at /home/kristina/code/mahara/htdocs/lib/pieforms/pieform.php:71
  pieform(array(size 5)) at /home/kristina/code/mahara/htdocs/account/institutions.php:210

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1240846/+subscriptions


References