engine/lib/admin.php 1 location
|
@@ 49-56 (lines=8) @@
|
46 |
|
$options['joins'] = array("join {$CONFIG->dbprefix}users_entity u on e.guid=u.guid"); |
47 |
|
} |
48 |
|
|
49 |
|
if (isset($options['wheres'])) { |
50 |
|
if (!is_array($options['wheres'])) { |
51 |
|
$options['wheres'] = array($options['wheres']); |
52 |
|
} |
53 |
|
$options['wheres'][] = "u.admin = 'yes'"; |
54 |
|
} else { |
55 |
|
$options['wheres'][] = "u.admin = 'yes'"; |
56 |
|
} |
57 |
|
|
58 |
|
return elgg_get_entities($options); |
59 |
|
} |
mod/wet4/views/default/input/friendspicker.php 1 location
|
@@ 44-51 (lines=8) @@
|
41 |
|
} |
42 |
|
|
43 |
|
// Initialise values |
44 |
|
if (!isset($vars['value'])) { |
45 |
|
$vars['value'] = array(); |
46 |
|
} else { |
47 |
|
if (!is_array($vars['value'])) { |
48 |
|
$vars['value'] = (int) $vars['value']; |
49 |
|
$vars['value'] = array($vars['value']); |
50 |
|
} |
51 |
|
} |
52 |
|
|
53 |
|
// Initialise whether we're calling back or not |
54 |
|
if (isset($vars['callback'])) { |
views/default/input/friendspicker.php 1 location
|
@@ 40-47 (lines=8) @@
|
37 |
|
} |
38 |
|
|
39 |
|
// Initialise values |
40 |
|
if (!isset($vars['value'])) { |
41 |
|
$vars['value'] = array(); |
42 |
|
} else { |
43 |
|
if (!is_array($vars['value'])) { |
44 |
|
$vars['value'] = (int) $vars['value']; |
45 |
|
$vars['value'] = array($vars['value']); |
46 |
|
} |
47 |
|
} |
48 |
|
|
49 |
|
// Initialise whether we're calling back or not |
50 |
|
if (isset($vars['callback'])) { |