Revision 906
Added by doc about 16 years ago
class.admin.php | ||
---|---|---|
213 | 213 |
// Set template permissions var |
214 | 214 |
$template_permissions = $this->get_session('TEMPLATE_PERMISSIONS'); |
215 | 215 |
// Return true if system perm = 1 |
216 |
if(is_numeric(array_search($name, $$type))) {
|
|
216 |
if (isset($$type) && is_array($$type) && is_numeric(array_search($name, $$type))) {
|
|
217 | 217 |
if($type == 'system_permissions') { |
218 | 218 |
return true; |
219 | 219 |
} else { |
Also available in: Unified diff
fixed error message in admin class if type array not defined