summaryrefslogtreecommitdiff
path: root/lib/exe
diff options
context:
space:
mode:
authorChristopher Smith <chris@jalakai.co.uk>2010-06-27 15:02:06 +0100
committerChristopher Smith <chris@jalakai.co.uk>2010-06-27 15:02:06 +0100
commit339bd727f11b2879121b67a65741bf1350e195e4 (patch)
tree1fadb5cfa105e35e42f2c00d687a87c315eaa42b /lib/exe
parentee4d22e0a02a665a30a387ba95e614c22600862b (diff)
downloadrpg-339bd727f11b2879121b67a65741bf1350e195e4.tar.gz
rpg-339bd727f11b2879121b67a65741bf1350e195e4.tar.bz2
Wrap $HTTP_RAW_POST_DATA in !empty() to avoid NOTICE in error logs
Diffstat (limited to 'lib/exe')
-rw-r--r--lib/exe/ajax.php2
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);
}