bug 2505: more warnings fixes in C4/Context.pm
authorGalen Charlton <galen.charlton@liblime.com>
Fri, 9 Jan 2009 18:16:43 +0000 (12:16 -0600)
committerHenri-Damien LAURENT <henridamien@koha-fr.org>
Tue, 27 Jan 2009 11:19:45 +0000 (12:19 +0100)
commit9a618896c55a8fb35f5a9b63bc0baa889f39211d
treee73996baf60663cb4cac9afc56a94ec5c8bab524
parent6a2a916b755911afd920117f227c98a8628b46ca
bug 2505: more warnings fixes in C4/Context.pm

* more portable way to determine uname for
  crash messages
* C4::Context->userenv now returns undef instead
  of 0 if no userenv has been set yet; returning
  undef when necessary is almost always better
  than returning a scalar when a hashref is
  normally expected.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
C4/Context.pm