summaryrefslogtreecommitdiff
path: root/web/lib
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-03-01 12:24:34 -0600
committerLukas Fleischer <archlinux@cryptocrack.de>2011-03-04 10:29:17 +0100
commitcdc01130cf03ceac98626e9bedc369da3f0fd2c7 (patch)
tree516c0b5e2daff6e43a6ac9706a162c0ac239d9fe /web/lib
parentddbe6d0d335ba7bc7170ad234667ca62f638bd3b (diff)
Fix PHP notices in account pages
Signed-off-by: Dan McGee <dan@archlinux.org> Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/lib')
-rw-r--r--web/lib/acctfuncs.inc8
1 files changed, 8 insertions, 0 deletions
diff --git a/web/lib/acctfuncs.inc b/web/lib/acctfuncs.inc
index 5dfe50e..d5137be 100644
--- a/web/lib/acctfuncs.inc
+++ b/web/lib/acctfuncs.inc
@@ -1,5 +1,13 @@
<?php
+# Helper function- retrieve request param if available, "" otherwise
+function in_request($name) {
+ if (isset($_REQUEST[$name])) {
+ return $_REQUEST[$name];
+ }
+ return "";
+}
+
# Display the standard Account form, pass in default values if any
function display_account_form($UTYPE,$A,$U="",$T="",$S="",