fix return by reference not a var
use empty() where array values might not be set
suppress errors where list() may not fill all vars
use isset() + ?: or error suppression where value may not be set
refactor to take into account missing value
set empty 'do' key to avoid errors in other tpl functions
improvements in acl plugin to avoid missing var errors
add some braces (just style, not E_ALL)
remove '&' from object parameters, PHP5 style not E_ALL
extend  to cover  (PR#589)
amend $_SERVER to $INPUT->server
Fix unittests broken by previous two commits

Mostly this is for unit tests which use of \$_SERVER['REMOTE_USER']

It ensures the reference/alias connection between \$INPUT->server
and \$_SERVER is renewed before each test.  Tests using TestRequest
class will replace this \$INPUT with their own.
remove reference to reference from comments
resolve notices generated in calls to updateTuple() when $metaidx[$id] doesn't exist
use \!empty() rather than error suppression
another instance of empty() where an array key might not exist
Merge pull request #588 from splitbrain/purge_E_ALL

Purge error log messages to support use of E_ALL