Commit 48e2a267 authored by Lisa Seeto's avatar Lisa Seeto
Browse files

Bug 1892664: Share access with users outside of institution is producing a warning



 - add in check for peoplein, set to array if false

Change-Id: Ie8a4c98190b1a15c4a6f7556fd714e50c20d62eb
Signed-off-by: default avatarLisa Seeto <lisaseeto@catalyst.net.nz>
parent 64aee694
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -67,7 +67,12 @@ switch ($type) {
            AND usr != ?
            ";
            $peoplein = get_records_sql_assoc($sql, array($USER->get('id')));
            $peoplein = array_keys($peoplein);
            if ($peoplein) {
                array_keys($peoplein);
            }
            else {
                $peoplein = array();
            }
            // $sorted will be set up as a structure that select2 can handle for dropdowns with labels
            $sorted = array();
            foreach ($data['data'] as $key => $user) {