← Back to team overview

mahara-contributors team mailing list archive

[Bug 1409398] [NEW] Suspending a user throws warning

 

Public bug reported:

On the latest master Mahara version 15.04dev (2014121600) when I suspend
a user and navigate to another page, I get the following warning:

[WAR] 58 (lib/dml.php:659) Argument 2 passed to get_records_sql_array() must be of the type array, null given, called in /home/kristina/code/mahara/htdocs/admin/users/suspended.json.php on line 61 and defined
Call stack (most recent first):

    log_message("Argument 2 passed to get_records_sql_array() must ...", 8, true, true, "/home/kristina/code/mahara/htdocs/lib/dml.php", 659) at /home/kristina/code/mahara/htdocs/lib/errors.php:441
    error(4096, "Argument 2 passed to get_records_sql_array() must ...", "/home/kristina/code/mahara/htdocs/lib/dml.php", 659, array(size 1)) at /home/kristina/code/mahara/htdocs/lib/dml.php:659
    get_records_sql_array(" SELECT ui.usr, ui.studentid, i.displaynam...", null) at /home/kristina/code/mahara/htdocs/admin/users/suspended.json.php:61

** Affects: mahara
     Importance: Undecided
         Status: New


** Tags: regression

** Tags added: regression

-- 
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/1409398

Title:
  Suspending a user throws warning

Status in Mahara ePortfolio:
  New

Bug description:
  On the latest master Mahara version 15.04dev (2014121600) when I
  suspend a user and navigate to another page, I get the following
  warning:

  [WAR] 58 (lib/dml.php:659) Argument 2 passed to get_records_sql_array() must be of the type array, null given, called in /home/kristina/code/mahara/htdocs/admin/users/suspended.json.php on line 61 and defined
  Call stack (most recent first):

      log_message("Argument 2 passed to get_records_sql_array() must ...", 8, true, true, "/home/kristina/code/mahara/htdocs/lib/dml.php", 659) at /home/kristina/code/mahara/htdocs/lib/errors.php:441
      error(4096, "Argument 2 passed to get_records_sql_array() must ...", "/home/kristina/code/mahara/htdocs/lib/dml.php", 659, array(size 1)) at /home/kristina/code/mahara/htdocs/lib/dml.php:659
      get_records_sql_array(" SELECT ui.usr, ui.studentid, i.displaynam...", null) at /home/kristina/code/mahara/htdocs/admin/users/suspended.json.php:61

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


Follow ups

References