correct usage of strpos

This commit is contained in:
who
2015-04-13 12:22:38 -07:00
parent 33bd614a42
commit 41db8798af
2 changed files with 2 additions and 2 deletions

View File

@@ -84,7 +84,7 @@ class {{classname}} {
}
// for HTTP post (form)
if (strpos($headerParams['Content-Type'], "application/x-www-form-urlencoded") > -1) {
if (strpos($headerParams['Content-Type'], "application/x-www-form-urlencoded") !== FALSE) {
$httpBody = http_build_query($formParams);
}