All pastes #731656 Raw Edit

Mine

public php v1 · immutable
·published 2007-10-10 08:14 UTC
rendered paste body
if (!wfRunHooks( 'getUserPermissionsErrors', array( &$this, &$user, $action, &$result ) ) ) {	if ($result != array() && is_array($result) && !is_array($result[0]))		$errors[] = $result;	else if (is_array($result) && is_array($result([0])))		$errors = array_merge( $errors, $result );	else if ($result != '' && $result != null)		$errors[] = array($result);}