diff options
author | Christopher Smith <chris@jalakai.co.uk> | 2010-06-27 15:02:06 +0100 |
---|---|---|
committer | Christopher Smith <chris@jalakai.co.uk> | 2010-06-27 15:02:06 +0100 |
commit | 339bd727f11b2879121b67a65741bf1350e195e4 (patch) | |
tree | 1fadb5cfa105e35e42f2c00d687a87c315eaa42b /lib | |
parent | ee4d22e0a02a665a30a387ba95e614c22600862b (diff) | |
download | rpg-339bd727f11b2879121b67a65741bf1350e195e4.tar.gz rpg-339bd727f11b2879121b67a65741bf1350e195e4.tar.bz2 |
Wrap $HTTP_RAW_POST_DATA in !empty() to avoid NOTICE in error logs
Diffstat (limited to 'lib')
-rw-r--r-- | lib/exe/ajax.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/exe/ajax.php b/lib/exe/ajax.php index 582be90e5..2945cca32 100644 --- a/lib/exe/ajax.php +++ b/lib/exe/ajax.php @@ -7,7 +7,7 @@ */ //fix for Opera XMLHttpRequests -if(!count($_POST) && $HTTP_RAW_POST_DATA){ +if(!count($_POST) && !empty($HTTP_RAW_POST_DATA)){ parse_str($HTTP_RAW_POST_DATA, $_POST); } |