summaryrefslogtreecommitdiffstats
path: root/web/lib/acctfuncs.inc
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-03-01 19:24:34 +0100
committerLukas Fleischer <archlinux@cryptocrack.de>2011-03-04 10:29:17 +0100
commitcdc01130cf03ceac98626e9bedc369da3f0fd2c7 (patch)
tree516c0b5e2daff6e43a6ac9706a162c0ac239d9fe /web/lib/acctfuncs.inc
parentddbe6d0d335ba7bc7170ad234667ca62f638bd3b (diff)
downloadaur-cdc01130cf03ceac98626e9bedc369da3f0fd2c7.tar.gz
aur-cdc01130cf03ceac98626e9bedc369da3f0fd2c7.tar.xz
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/acctfuncs.inc')
-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 5dfe50e4..d5137be6 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="",